3 ms·
That looks like magic. GDB should really add such functionality. It allready has dependency on curses. Edit: Oh 'gdb -tui' ... I should read the docs more ofen
by rightbyte 6y ago
That looks like magic. GDB should really add such functionality. It allready has dependency on curses.
Edit:
Oh 'gdb -tui' ... I should read the docs more ofent.
- cipherboy 6y agoThere's also shortcuts to enter and leave tui mode: https://sourceware.org/gdb/current/onlinedocs/gdb/TUI-Keys.html https://sourceware.org/gdb/current/onlinedocs/gdb/TUI-Keys.h... (I never start with gdb -tui but usually end up there for a little bit). As the author pointed out, this hijacks arrow keys, so you have to use readline editing: https://sourceware.org/gdb/current/onlinedocs/gdb/Readline-Bare-Essentials.html#Readline-Bare-Essentials https://sourceware.org/gdb/current/onlinedocs/gdb/Readline-B... https://sourceware.org/gdb/current/onlinedocs/gdb/Readline-Movement-Commands.html#Readline-Movement-Commands https://sourceware.org/gdb/current/onlinedocs/gdb/Readline-M... Fortunately, there's a lot of stuff that uses readline so it is all very portable.