1 /* Copyright (C) 1997 Free Software Foundation, Inc.
2 This file is part of GNU CC. */
4 typedef struct frame_state
10 long reg_or_offset
[FIRST_PSEUDO_REGISTER
+1];
11 unsigned short cfa_reg
;
12 unsigned short retaddr_column
;
13 char saved
[FIRST_PSEUDO_REGISTER
+1];
16 /* Values for 'saved' above. */
18 #define REG_SAVED_OFFSET 1
19 #define REG_SAVED_REG 2
21 /* The representation for an "object" to be searched for frame unwind info.
22 For targets with named sections, one object is an executable or shared
23 library; for other targets, one object is one translation unit.
25 A copy of this structure declaration is printed by collect2.c;
26 keep the copies synchronized! */
31 struct dwarf_fde
*fde_begin
;
32 struct dwarf_fde
**fde_array
;
37 extern void __register_frame (void * );
38 extern void __register_frame_table (void *);
39 extern void __deregister_frame (void *);
41 /* Called either from crtbegin.o or a static constructor to register the
42 unwind info for an object or translation unit, respectively. */
44 extern void __register_frame_info (void *, struct object
*);
46 /* Similar, but BEGIN is actually a pointer to a table of unwind entries
47 for different translation units. Called from the file generated by
49 extern void __register_frame_info_table (void *, struct object
*);
51 /* Called from crtend.o to deregister the unwind info for an object. */
53 extern void *__deregister_frame_info (void *);
55 /* Called from __throw to find the registers to restore for a given
56 PC_TARGET. The caller should allocate a local variable of `struct
57 frame_state' (declared in frame.h) and pass its address to STATE_IN.
58 Returns NULL on failure, otherwise returns STATE_IN. */
60 extern struct frame_state
*__frame_state_for (void *, struct frame_state
*);