From 107f81314155383ab9c0625f3d157be55131f837 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 16 Jul 1998 20:08:44 +0000 Subject: Update. 1998-07-16 20:01 Ulrich Drepper * debug/Makefile (routines): Add backtracesymsfd. Add rules to generate libSegFault. * debug/Versions: Add __backtrace_symbols_fd and backtrace_symbols_fd. * debug/execinfo.h: Declare backtrace_symbols_fd. * sysdeps/generic/backtracesymsfd.c: New file. * sysdeps/generic/elf/backtracesymsfd.c: New file. * sysdeps/generic/segfault.c: New file. * sysdeps/generic/sigcontextinfo.h: New file. * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: New file. * sysdeps/generic/elf/backtracesyms.c: Remove unneeded +. --- debug/execinfo.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'debug/execinfo.h') diff --git a/debug/execinfo.h b/debug/execinfo.h index bf757edf77..9e0e551a4a 100644 --- a/debug/execinfo.h +++ b/debug/execinfo.h @@ -34,6 +34,15 @@ extern int backtrace __P ((void **__array, int __size)); extern char **__backtrace_symbols __P ((void *__const *__array, int __size)); extern char **backtrace_symbols __P ((void *__const *__array, int __size)); + +/* This function is similar to backtrace_symbols() but it writes the result + immediately to a file and can therefore also be used in situations where + malloc() is not usable anymore. */ +extern void __backtrace_symbols_fd __P ((void *__const *__array, int __size, + int __fd)); +extern void backtrace_symbols_fd __P ((void *__const *__array, int __size, + int __fd)); + __END_DECLS #endif /* execinfo.h */ -- cgit v1.2.3