diff --git a/src/debug.c b/src/debug.c index fb4d7847fd..e7898bb02e 100644 --- a/src/debug.c +++ b/src/debug.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -149,6 +150,12 @@ struct post_mortem { /* information about dynamic shared libraries involved */ char *libs; // dump of one addr / path per line, or NULL #endif + struct tgroup_info *tgroup_info; // pointer to ha_tgroup_info + struct thread_info *thread_info; // pointer to ha_thread_info + struct tgroup_ctx *tgroup_ctx; // pointer to ha_tgroup_ctx + struct thread_ctx *thread_ctx; // pointer to ha_thread_ctx + struct list *pools; // pointer to the head of the pools list + struct proxy **proxies; // pointer to the head of the proxies list /* info about identified distinct components (executable, shared libs, etc). * These can be all listed at once in gdb using: @@ -2543,6 +2550,13 @@ static int feed_post_mortem() post_mortem.libs = strdup(trash.area); #endif + post_mortem.tgroup_info = ha_tgroup_info; + post_mortem.thread_info = ha_thread_info; + post_mortem.tgroup_ctx = ha_tgroup_ctx; + post_mortem.thread_ctx = ha_thread_ctx; + post_mortem.pools = &pools; + post_mortem.proxies = &proxies_list; + return ERR_NONE; }