diff options
author | ajs <ajs> | 2005-01-17 16:22:28 +0100 |
---|---|---|
committer | ajs <ajs> | 2005-01-17 16:22:28 +0100 |
commit | 239c26fdeae4dbccb43da359f9ea034041440831 (patch) | |
tree | aefdb215d2e9ad88afe04d105c07cb9d8550bf96 /lib/log.h | |
parent | * bgp_route.c: Clear peer's routing table regardless whether it's (diff) | |
download | frr-239c26fdeae4dbccb43da359f9ea034041440831.tar.xz frr-239c26fdeae4dbccb43da359f9ea034041440831.zip |
2005-01-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* 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]
Diffstat (limited to '')
-rw-r--r-- | lib/log.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* - * $Id: log.h,v 1.15 2005/01/12 17:27:27 ajs Exp $ + * $Id: log.h,v 1.16 2005/01/17 15:22:28 ajs Exp $ * * Zebra logging funcions. * Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro @@ -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: */ |