MINOR: debug: also add a pointer to struct global to post_mortem
authorWilly Tarreau <w@1wt.eu>
Sat, 26 Oct 2024 09:33:09 +0000 (11:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2024 18:04:38 +0000 (19:04 +0100)
commit7f09a7a935a9b2c21ef590cfd3f41b7ea7e0b0cf
tree8facacdd2b5032103637265394b53942471c075c
parentc984817bb8bdec0635d4d86d31914508780bf8e9
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.

(cherry picked from commit 2f04ebe14aca91f4a0fafcd03a0f310d98d97aaf)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/debug.c