summaryrefslogtreecommitdiffstats
path: root/lib/debug.c
diff options
context:
space:
mode:
authorajs <ajs>2004-11-26 19:36:42 +0000
committerajs <ajs>2004-11-26 19:36:42 +0000
commit42fde89efd6559ea30229d15241bdbac3e2dcd3b (patch)
treee8f614e30c5c4d26c8eba9454ea3c2a1e6a9aeba /lib/debug.c
parent937c85d41b340152e548ba72c8f32fb8c62e3872 (diff)
downloadquagga-42fde89efd6559ea30229d15241bdbac3e2dcd3b.tar.bz2
quagga-42fde89efd6559ea30229d15241bdbac3e2dcd3b.tar.xz
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 * ospf_main.c: Remove #include "debug.h" (was not being used, and lib/debug.h has now been deleted).
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c25
1 files changed, 0 insertions, 25 deletions
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);
-}