about summary refs log tree commit diff
path: root/sysdeps/generic/unwind.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-10-05 19:33:05 +0000
committerUlrich Drepper <drepper@redhat.com>2003-10-05 19:33:05 +0000
commit083cb7587733b771119fe493bff0d01e8d9eddc1 (patch)
tree228af46a0023023355510d32086b3bb869dd4176 /sysdeps/generic/unwind.h
parentc70a86b618e3e04dcccb7b970ab54da60a27937f (diff)
downloadglibc-083cb7587733b771119fe493bff0d01e8d9eddc1.tar.gz
glibc-083cb7587733b771119fe493bff0d01e8d9eddc1.tar.xz
glibc-083cb7587733b771119fe493bff0d01e8d9eddc1.zip
Update.
2003-10-05  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/ia64/backtrace.c: New file.
	* sysdeps/x86_64/backtrace.c: New file.
	* sysdeps/generic/unwind.h (_Unwind_Trace_Fn): New type.
	(_Unwind_Backtrace): New prototype.
Diffstat (limited to 'sysdeps/generic/unwind.h')
-rw-r--r--sysdeps/generic/unwind.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/generic/unwind.h b/sysdeps/generic/unwind.h
index 31c7054c2c..1d93de0016 100644
--- a/sysdeps/generic/unwind.h
+++ b/sysdeps/generic/unwind.h
@@ -130,6 +130,14 @@ extern void _Unwind_DeleteException (struct _Unwind_Exception *);
    e.g. executing cleanup code, and not to implement rethrowing.  */
 extern void _Unwind_Resume (struct _Unwind_Exception *);
 
+/* @@@ Use unwind data to perform a stack backtrace.  The trace callback
+   is called for every stack frame in the call chain, but no cleanup
+   actions are performed.  */
+typedef _Unwind_Reason_Code (*_Unwind_Trace_Fn)
+     (struct _Unwind_Context *, void *);
+
+extern _Unwind_Reason_Code _Unwind_Backtrace (_Unwind_Trace_Fn, void *);
+
 /* These functions are used for communicating information about the unwind
    context (i.e. the unwind descriptors and the user register state) between
    the unwind library and the personality routine and landing pad.  Only