haproxy/dev/gdb
Willy Tarreau e240be5495 DEV: gdb: add a number of gdb scripts to navigate in core dumps
These is a collection of functions I'm occasionally using to navigate
in core dumps. Only working ones were extracted.

Those requiring knowledge of global variables (e.g. pools, proxy list)
use the one extracted from the post_mortem struct. That one is defined
in post-mortem.gdb and needs to be initialized using "pm_init post_mortem"
or "pm_init <pointer>". From this point a number of global variables are
accessible even if symbols are missing; those ones are then used by other
functions to dump streams, threads, pools, proxies etc.

The files can be sourced or copy-pasted into a gdb session. It's worth
trying to keep them up-to-date, as the old ones used to navigate through
tasks are no longer usable due to massive changes.
2024-10-28 17:55:08 +01:00
..
ebtree.gdb DEV: gdb: add a number of gdb scripts to navigate in core dumps 2024-10-28 17:55:08 +01:00
list.gdb DEV: gdb: add a number of gdb scripts to navigate in core dumps 2024-10-28 17:55:08 +01:00
pools.gdb DEV: gdb: add a number of gdb scripts to navigate in core dumps 2024-10-28 17:55:08 +01:00
post-mortem.gdb DEV: gdb: add a number of gdb scripts to navigate in core dumps 2024-10-28 17:55:08 +01:00
proxies.gdb DEV: gdb: add a number of gdb scripts to navigate in core dumps 2024-10-28 17:55:08 +01:00
servers.gdb DEV: gdb: add a number of gdb scripts to navigate in core dumps 2024-10-28 17:55:08 +01:00
stream.gdb DEV: gdb: add a number of gdb scripts to navigate in core dumps 2024-10-28 17:55:08 +01:00