summaryrefslogtreecommitdiff
path: root/gcc/unwind.h
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-15 16:24:18 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-15 16:24:18 +0000
commit4f0ee6868cc65119671fbc281ba17f85d61c0f51 (patch)
tree90eeed59b90dd08a506965db65e9397ff6d450d4 /gcc/unwind.h
parent5d0c931c899a823fcfcbcb70ae7ab1fead6c3691 (diff)
downloadgcc-4f0ee6868cc65119671fbc281ba17f85d61c0f51.tar.gz
* unwind.inc (_Unwind_Backtrace): New function.
* unwind.h (_Unwind_Backtrace): Declare it. * libgcc-std.ver (_Unwind_Backtrace): Export it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65641 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unwind.h')
-rw-r--r--gcc/unwind.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/unwind.h b/gcc/unwind.h
index 084eebfa875..8f7a499330e 100644
--- a/gcc/unwind.h
+++ b/gcc/unwind.h
@@ -127,6 +127,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