bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

the gdb does not displays tui properly


From: Kartikey Tewari
Subject: the gdb does not displays tui properly
Date: Sat, 5 Oct 2019 14:41:38 +0530

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H   -I.  -I../. -I.././include -I.././lib  -Wdate-time
-D_FORTIFY_SOURCE=2 -g -O2
-fdebug-prefix-map=/build/bash-N2nMjo/bash-4.4.18=.
-fstack-protector-strong -Wformat -Werror=format-security -Wall
-Wno-parentheses -Wno-format-security
uname output: Linux inspiron-5370 4.4.0-18362-Microsoft #1-Microsoft Mon
Mar 18 12:02:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu


Bash Version: 4.4
Patch Level: 20
Release Status: release

Description:
I am using Microsoft Windows-10 -wsl ubuntu.
when dubugging c++ codes having extension .cpp via gdb debugger, I observe
that TUI does not get rendered properly.
But when I use the same code and binary in ubuntu-18.04 LTS, that I have
dual booted alongwith win10 in the system
the TUI works flawlessly. Please correct the same.

Repeat-By:
1. write a code say, main.cpp
2. compile using g++
open cmd
wsl
g++ -g -o main.out main.cpp
gdb
tui enable
file main.out
l
set breakpoints using b main.cpp:<line_number>
r (run the programme)
n
info local (tui breaks at this point)



Fix:
Using ctrl+l after every command works always.So, I tried hooking majour
commands like next,continue, and info local
to refresh command, but that does not works, always.

Regards
Kartikey Tewari
Undergraduate
CSE Department
NIT, Hamirpur


reply via email to

[Prev in Thread] Current Thread [Next in Thread]