about summary refs log tree commit diff
path: root/debug/execinfo.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-16 20:08:44 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-16 20:08:44 +0000
commit107f81314155383ab9c0625f3d157be55131f837 (patch)
tree8269ce62db3039a86c13b0c090691081fbf8797c /debug/execinfo.h
parent7a2fd787a7aa4de58b9e3db5fe996f5ea89a3180 (diff)
downloadglibc-107f81314155383ab9c0625f3d157be55131f837.tar.gz
glibc-107f81314155383ab9c0625f3d157be55131f837.tar.xz
glibc-107f81314155383ab9c0625f3d157be55131f837.zip
Update.
1998-07-16 20:01  Ulrich Drepper  <drepper@cygnus.com>

	* 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 +.
Diffstat (limited to 'debug/execinfo.h')
-rw-r--r--debug/execinfo.h9
1 files changed, 9 insertions, 0 deletions
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  */