]> gcc.gnu.org Git - gcc.git/blame - gcc/unwind-dw2.h
re PR bootstrap/45751 (Bootstrap failure: at stage 1 xgcc segfault)
[gcc.git] / gcc / unwind-dw2.h
CommitLineData
f8a57be8 1/* DWARF2 frame unwind data structure.
54f5943c 2 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2009
f8a57be8
GK
3 Free Software Foundation, Inc.
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
748086b7 9 the Free Software Foundation; either version 3, or (at your option)
f8a57be8
GK
10 any later version.
11
f8a57be8
GK
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
16
748086b7
JJ
17 Under Section 7 of GPL version 3, you are granted additional
18 permissions described in the GCC Runtime Library Exception, version
19 3.1, as published by the Free Software Foundation.
20
21 You should have received a copy of the GNU General Public License and
22 a copy of the GCC Runtime Library Exception along with this program;
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 <http://www.gnu.org/licenses/>. */
f8a57be8
GK
25
26/* A target can override (perhaps for backward compatibility) how
27 many dwarf2 columns are unwound. */
28#ifndef DWARF_FRAME_REGISTERS
29#define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
30#endif
31
32/* The result of interpreting the frame unwind info for a frame.
33 This is all symbolic at this point, as none of the values can
34 be resolved until the target pc is located. */
35typedef struct
36{
37 /* Each register save state can be described in terms of a CFA slot,
38 another register, or a location expression. */
39 struct frame_state_reg_info
40 {
41 struct {
42 union {
43 _Unwind_Word reg;
44 _Unwind_Sword offset;
45 const unsigned char *exp;
46 } loc;
47 enum {
48 REG_UNSAVED,
49 REG_SAVED_OFFSET,
50 REG_SAVED_REG,
4469af7a
JJ
51 REG_SAVED_EXP,
52 REG_SAVED_VAL_OFFSET,
54f5943c
JJ
53 REG_SAVED_VAL_EXP,
54 REG_UNDEFINED
f8a57be8
GK
55 } how;
56 } reg[DWARF_FRAME_REGISTERS+1];
57
58 /* Used to implement DW_CFA_remember_state. */
59 struct frame_state_reg_info *prev;
f8a57be8 60
6673f90b
NF
61 /* The CFA can be described in terms of a reg+offset or a
62 location expression. */
63 _Unwind_Sword cfa_offset;
64 _Unwind_Word cfa_reg;
65 const unsigned char *cfa_exp;
66 enum {
67 CFA_UNSET,
68 CFA_REG_OFFSET,
69 CFA_EXP
70 } cfa_how;
71 } regs;
f8a57be8
GK
72
73 /* The PC described by the current frame state. */
74 void *pc;
75
76 /* The information we care about from the CIE/FDE. */
77 _Unwind_Personality_Fn personality;
78 _Unwind_Sword data_align;
79 _Unwind_Word code_align;
80 _Unwind_Word retaddr_column;
81 unsigned char fde_encoding;
82 unsigned char lsda_encoding;
83 unsigned char saw_z;
754e45a8 84 unsigned char signal_frame;
f8a57be8
GK
85 void *eh_ptr;
86} _Unwind_FrameState;
87
This page took 3.062491 seconds and 5 git commands to generate.