aboutsummaryrefslogtreecommitdiff
path: root/gcc/frame.h
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1997-09-10 14:02:36 -0400
committerJason Merrill <jason@gcc.gnu.org>1997-09-10 14:02:36 -0400
commit4877a06fa4e9da107e0ddc0455a909f8b274846f (patch)
treebd7223d0cc3a3e21d547c4a9601ff1b7e12e5a26 /gcc/frame.h
parent9dfc6eba89b34917b26947ffb35984cdd3f70944 (diff)
downloadgcc-4877a06fa4e9da107e0ddc0455a909f8b274846f.zip
gcc-4877a06fa4e9da107e0ddc0455a909f8b274846f.tar.gz
gcc-4877a06fa4e9da107e0ddc0455a909f8b274846f.tar.bz2
dwarf2 EH support
From-SVN: r15257
Diffstat (limited to 'gcc/frame.h')
-rw-r--r--gcc/frame.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/gcc/frame.h b/gcc/frame.h
new file mode 100644
index 0000000..3b38053
--- /dev/null
+++ b/gcc/frame.h
@@ -0,0 +1,35 @@
+/* Copyright (C) 1997 Free Software Foundation, Inc.
+ This file is part of GNU CC. */
+
+typedef struct frame_state
+{
+ void *cfa;
+ void *eh_ptr;
+ long cfa_offset;
+ long args_size;
+ long reg_or_offset[FIRST_PSEUDO_REGISTER+1];
+ unsigned short cfa_reg;
+ unsigned short retaddr_column;
+ char saved[FIRST_PSEUDO_REGISTER+1];
+} frame_state;
+
+/* Values for 'saved' above. */
+#define REG_UNSAVED 0
+#define REG_SAVED_OFFSET 1
+#define REG_SAVED_REG 2
+
+/* Called either from crtbegin.o or a static constructor to register the
+ unwind info for an object or translation unit, respectively. */
+
+extern void __register_frame (void *);
+
+/* Called from crtend.o to deregister the unwind info for an object. */
+
+extern void __deregister_frame (void *);
+
+/* Called from __throw to find the registers to restore for a given
+ PC_TARGET. The caller should allocate a local variable of `struct
+ frame_state' (declared in frame.h) and pass its address to STATE_IN.
+ Returns NULL on failure, otherwise returns STATE_IN. */
+
+extern struct frame_state *__frame_state_for (void *, struct frame_state *);