Embed GDB helper

* Add GDB helper script

Pretty printing of some common argument types

Need to add a line to ~/.gdbinit

> add-auto-load-safe-path /path/to/base/checkout/

afterwards verify at GDB shell with

> info auto-load python-scripts
> info pretty-printer

Tested with GDB 16.3 circa Debian 13

Add $rcast(dbCommon) to up-cast
Add $record("name") to lookup record
Add $elln(ELLLIST,#) to index into list
This commit is contained in:
mdavidsaver authored and GitHub committed 2026-06-21 07:18:08 -07:00
1 parent 58152f6a42
commit 4b03e97d7b
7 files changed
+348

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
## Add GDB Helper Script
Add [Debugging with GDB](gdb.md) section in documentation.
Add GDB helper script to pretty print some common database types.
Tested with GDB 16.3.
Compatible with python 3.