|
- c++ - Print the whole linked list in gdb? - Stack Overflow
3 GDB is scriptable in Python You can define your own pretty-printers and do other useful things Better yet, use a standard container, GDB now supports printing those natively
- GDB Cheat Sheet - GitHub Pages
GDB Cheat Sheet Examining the Stack backtrace display the current call stack (can be used after a runtime error, eg segfault) Gabrielle Singh Cadieux, 2017
- Debugging with GDB - List - GNU
By default, GDB prints ten source lines with any of these forms of the list command You can change this using set listsize:
- List - Debugging with GDB
To print lines from a source file, use the list command (abbreviated l) By default, ten lines are printed There are several ways to specify what part of the file you want to print; see Specify Location, for the full list
- Linux Tutorial - GNU GDB Debugger Command Cheat Sheet
(gdb) pvector II elem[0]: $2 = 10 elem[1]: $3 = 20 elem[2]: $4 = 30 Vector size = 3 Vector capacity = 4 Element type = int * (gdb) c Continuing 3 Program exited normally (gdb) quit Notice the native GDB print "p" results in an cryptic display while the "pvector" routine from the GDB script provided a human decipherable display of your data
|
|
|