Skip to content

Commit 2f04ebe

Browse files
committed
MINOR: debug: also add a pointer to struct global to post_mortem
The pointer to struct global is also an important element to have in post_mortem given that it's used a lot to take decisions in the code. Let's just add it. It's worth noting that we could get rid of argc/argv at this point since they're also present in the global struct, but they don't cost much there anyway.
1 parent dc1c0a1 commit 2f04ebe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/debug.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ struct post_mortem {
156156
struct thread_ctx *thread_ctx; // pointer to ha_thread_ctx
157157
struct list *pools; // pointer to the head of the pools list
158158
struct proxy **proxies; // pointer to the head of the proxies list
159+
struct global *global; // pointer to the struct global
159160

160161
/* info about identified distinct components (executable, shared libs, etc).
161162
* These can be all listed at once in gdb using:
@@ -2564,6 +2565,7 @@ static int feed_post_mortem()
25642565
post_mortem.thread_ctx = ha_thread_ctx;
25652566
post_mortem.pools = &pools;
25662567
post_mortem.proxies = &proxies_list;
2568+
post_mortem.global = &global;
25672569

25682570
return ERR_NONE;
25692571
}

0 commit comments

Comments
 (0)