haproxy/dev/gdb
Willy Tarreau 83634a4c9a DEV: dev/gdb: add fdtab dump
Three functions are provided here:
  fd_dump: lists all FDs
  fd_dump_conn: lists all FDs holding a connection
  fd_dump_listener: lists all FDs holding a listener

They take no argument, and dump some of the known info. E.g. for
a connection, ctrl, xprt, flags, mux, sessions, frontend's name
and session's age are reported. Example:

  (gdb) fd_dump_conn
  fd    31: rm=0 tm=0x2 um=0 st=0x21 refc=0x1 tkov=0 gen=0 conn=0x7fffe803b600: flg=0x300 err=0 ctrl=0xdf51c0 xprt=0xdf5c80 mux=0xbaeee0 sess=0x7ffff003b570: fe=0x1e45b00 id=foo age=0ms

They are particularly slow because they iterate over all possible FDs,
so better limit them to the desired types.
2026-06-01 19:08:42 +02:00
..
ebtree.gdb DEV: dev/gdb: improve ebtree pointer handling 2026-06-01 19:08:42 +02:00
fd.gdb DEV: dev/gdb: add fdtab dump 2026-06-01 19:08:42 +02:00
libs-from-core.c DEV: gdb: add a new utility to extract libs from a core dump: libs-from-core 2026-03-18 15:30:39 +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
memprof.dbg DEV: gdb: add a memprofile decoder to the debug tools 2025-07-16 15:33:33 +02:00
pm-from-core.c DEV: gdb: add a utility to find the post-mortem address from a core 2026-02-14 14:46:33 +01:00
pools.gdb DEV: gdb: use unsigned longs to display pools memory usage 2026-02-16 11:07:23 +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
task.gdb DEV: dev/gdb: add simple task dump 2026-06-01 19:08:42 +02:00
thread.gdb DEV: dev/gdb: add simple thread dump 2026-06-01 19:08:42 +02:00