diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 5 | ||||
-rw-r--r-- | lib/Makefile.am | 4 | ||||
-rw-r--r-- | lib/debug.c | 25 | ||||
-rw-r--r-- | lib/debug.h | 3 |
4 files changed, 7 insertions, 30 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 19fb03fe..f2969e94 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,10 @@ 2004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + * debug.[ch]: Remove unused files. + * Makefile.am: Remove references to debug.c and debug.h + +2004-11-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + * log.c: (zlog_backtrace) New function to log a backtrace. (zlog_backtrace_safe) Log a backtrace in an async-signal-safe way. Unfortunately, this function does not support syslog logging yet. diff --git a/lib/Makefile.am b/lib/Makefile.am index 78bce16d..4709b34a 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -12,7 +12,7 @@ libzebra_la_SOURCES = \ sockunion.c prefix.c thread.c if.c memory.c buffer.c table.c hash.c \ filter.c routemap.c distribute.c stream.c str.c log.c plist.c \ zclient.c sockopt.c smux.c md5.c if_rmap.c keychain.c privs.c \ - debug.c sigevent.c pqueue.c jhash.c + sigevent.c pqueue.c jhash.c libzebra_la_DEPENDENCIES = @LIB_REGEX@ @@ -23,7 +23,7 @@ pkginclude_HEADERS = \ memory.h network.h prefix.h routemap.h distribute.h sockunion.h \ str.h stream.h table.h thread.h vector.h version.h vty.h zebra.h \ plist.h zclient.h sockopt.h smux.h md5-gnu.h if_rmap.h keychain.h \ - privs.h debug.h sigevent.h pqueue.h jhash.h zassert.h + privs.h sigevent.h pqueue.h jhash.h zassert.h EXTRA_DIST = regex.c regex-gnu.h diff --git a/lib/debug.c b/lib/debug.c deleted file mode 100644 index 252e4dd7..00000000 --- a/lib/debug.c +++ /dev/null @@ -1,25 +0,0 @@ -#include <zebra.h> -#include "log.h" - -void -debug_print_trace (int signal) -{ -#ifdef HAVE_GLIBC_BACKTRACE - void *array[10]; - size_t size; - char **strings; - size_t i; - - size = backtrace (array, 10); - strings = backtrace_symbols (array, size); - - printf ("Obtained %zd stack frames.\n", size); - - for (i = 0; i < size; i++) - printf ("%s\n", strings[i]); - - free (strings); -#endif /* HAVE_GLIBC_BACKTRACE */ - - exit(1); -} diff --git a/lib/debug.h b/lib/debug.h deleted file mode 100644 index 44409042..00000000 --- a/lib/debug.h +++ /dev/null @@ -1,3 +0,0 @@ - -void debug_print_trace (int); - |