DEBUG: tinfo: store the pthread ID and the stack pointer in tinfo
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Nov 2023 17:01:25 +0000 (18:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Nov 2023 13:32:55 +0000 (14:32 +0100)
commit2268f10dd6fb8852b04fd302f095556337ec7372
treea5f6ac2a035a702dbe9b8c2e6db713719c38c279
parent53da8bfcb6d3f4918a45fe77347317ad885ba25e
DEBUG: tinfo: store the pthread ID and the stack pointer in tinfo

When debugging a core, it's difficult to match a given gdb thread number
against an internal thread. Let's just store the pthread ID and the stack
pointer in each tinfo. This could help in the future by allowing to just
glance over them and pick the right one depending what info is found
first.
include/haproxy/tinfo-t.h
src/haproxy.c