s3/lib: add log_panic_action()
commita38025b3a73b9fe96c9a99adf4dfa5536806c15f
authorRalph Boehme <slow@samba.org>
Wed, 13 Dec 2023 06:57:46 +0000 (13 07:57 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 21 Dec 2023 23:48:46 +0000 (21 23:48 +0000)
treec01b644e75f7d06d35e3c8cdc328387454537087
parent85c4d03e38a5c983e7b99ca48c3e262465485a56
s3/lib: add log_panic_action()

Can be used to log a nice stack backtrace with full debug symbols by setting
"panic action" to something like

    panic action = cd /home/slow/git/samba/master && /home/slow/git/samba/master/selftest/gdb_backtrace %d

This is similar to log_stack_trace(), but that doesn't come with debug symbols.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/include/proto.h
source3/lib/util.c