From 09c64f5153f2450f59a9a42d886c96b4b00ae9f4 Mon Sep 17 00:00:00 2001 From: ajs Date: Mon, 17 Jan 2005 15:22:28 +0000 Subject: 2005-01-17 Andrew J. Schorr * log.h: Change prototype for zlog_backtrace_sigsafe to take additional program_counter argument. * log.c: (zlog_backtrace_sigsafe) Add additional program_counter argument. If it is non-NULL, use backtrace_symbols_fd to resolve the address. (zlog_signal) Call zlog_backtrace_sigsafe with additional program_counter argument. [pullup candidate] --- lib/log.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/log.h') diff --git a/lib/log.h b/lib/log.h index bcfa0319..5418b1d0 100644 --- a/lib/log.h +++ b/lib/log.h @@ -161,8 +161,9 @@ extern void zlog_backtrace(int priority); /* Log a backtrace, but in an async-signal-safe way. Should not be called unless the program is about to exit or abort, since it messes - up the state of zlog file pointers. */ -extern void zlog_backtrace_sigsafe(int priority); + up the state of zlog file pointers. If program_counter is non-NULL, + that is logged in addition to the current backtrace. */ +extern void zlog_backtrace_sigsafe(int priority, void *program_counter); /* Defines for use in command construction: */ -- cgit v1.2.3