Subversion Repositories Kolibri OS

Rev

Rev 4383 | Details | Compare with Previous | Last modification | View Log | RSS feed

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