Categories
October Surprise 2024

Printing Variables in GDB – StevenLwcz/gdb-python GitHub Wiki

Print out groups of variables. (gdb) info locals (gdb) info args (gdb) info variables (gdb) help info (gdb) help info variables Python Scripts (gdb) info locals displays the current block and all parent blocks. If you want a bit of finesse. Current block block.py frame = gdb.selected_frame() block = frame.block() for symbol in block: if symbol …