dwarf2.h (DW_TAG_condition, [...]): New constants from DWARF 3.
* dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
from DWARF 3.
(DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
(DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
(DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
DW_DS_leading_separate, DW_DS_trailing_separate): New.
(DW_END_default, DW_END_big, DW_END_little): New.
(DW_END_lo_user, DW_END_hi_user): Define.
(DW_LNE_lo_user, DW_LNE_hi_user): Define.
(DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
(DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
DW_LANG_D): New.
From-SVN: r111620
2006-03-02 00:26:13 +01:00
|
|
|
|
/* Declarations and definitions of codes relating to the DWARF2 and
|
|
|
|
|
DWARF3 symbolic debugging information formats.
|
2015-07-14 18:08:59 +02:00
|
|
|
|
Copyright (C) 1992-2015 Free Software Foundation, Inc.
|
2002-01-29 00:23:26 +01:00
|
|
|
|
|
|
|
|
|
Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
|
2003-01-18 03:26:43 +01:00
|
|
|
|
Office (AJPO), Florida State University and Silicon Graphics Inc.
|
2002-01-29 00:23:26 +01:00
|
|
|
|
provided support for this effort -- June 21, 1995.
|
|
|
|
|
|
|
|
|
|
Derived from the DWARF 1 implementation written by Ron Guilmette
|
|
|
|
|
(rfg@netcom.com), November 1990.
|
1996-07-19 02:26:36 +02:00
|
|
|
|
|
2004-10-06 22:27:15 +02:00
|
|
|
|
This file is part of GCC.
|
1999-01-11 14:43:27 +01:00
|
|
|
|
|
2004-10-06 22:27:15 +02:00
|
|
|
|
GCC is free software; you can redistribute it and/or modify it under
|
|
|
|
|
the terms of the GNU General Public License as published by the Free
|
2007-07-26 10:37:01 +02:00
|
|
|
|
Software Foundation; either version 3, or (at your option) any later
|
2004-10-06 22:27:15 +02:00
|
|
|
|
version.
|
1999-01-11 14:43:27 +01:00
|
|
|
|
|
2004-10-06 22:27:15 +02:00
|
|
|
|
GCC is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
|
|
|
|
License for more details.
|
1999-01-11 14:43:27 +01:00
|
|
|
|
|
2009-04-09 17:00:19 +02:00
|
|
|
|
Under Section 7 of GPL version 3, you are granted additional
|
|
|
|
|
permissions described in the GCC Runtime Library Exception, version
|
|
|
|
|
3.1, as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License and
|
|
|
|
|
a copy of the GCC Runtime Library Exception along with this program;
|
|
|
|
|
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
2007-07-26 10:37:01 +02:00
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
|
|
|
|
|
/* This file is derived from the DWARF specification (a public document)
|
|
|
|
|
Revision 2.0.0 (July 27, 1993) developed by the UNIX International
|
|
|
|
|
Programming Languages Special Interest Group (UI/PLSIG) and distributed
|
|
|
|
|
by UNIX International. Copies of this specification are available from
|
2002-01-29 00:23:26 +01:00
|
|
|
|
UNIX International, 20 Waterview Boulevard, Parsippany, NJ, 07054.
|
|
|
|
|
|
2009-06-30 02:02:10 +02:00
|
|
|
|
This file also now contains definitions from the DWARF 3 specification
|
|
|
|
|
published Dec 20, 2005, available from: http://dwarf.freestandards.org. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
|
2011-02-23 09:57:49 +01:00
|
|
|
|
#ifndef _DWARF2_H
|
|
|
|
|
#define _DWARF2_H
|
2004-10-06 22:27:15 +02:00
|
|
|
|
|
dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
gcc
* dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
(dwarf_tag_name): Use get_DW_TAG_name.
(dwarf_attr_name): Use get_DW_AT_name.
(dwarf_form_name): Use get_DW_FORM_name.
* dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
include
* dwarf2.h (enum dwarf_tag, enum dwarf_form, enum dwarf_attribute)
(enum dwarf_location_atom, enum dwarf_type, enum
dwarf_call_frame_info): Remove.
(DW_TAG, DW_TAG_DUP, DW_FORM, DW_AT, DW_AT_DUP, DW_OP)
(DW_OP_DUP, DW_ATE, DW_ATE_DUP, DW_CFA): New macros.
Include dwarf2.def.
(get_DW_TAG_name, get_DW_AT_name, get_DW_FORM_name)
(get_DW_OP_name, get_DW_ATE_name): Declare.
* dwarf2.def: New file, from dwarf2.h.
libiberty
* dwarfnames.c: New file.
* Makefile.in (CFILES): Add dwarfnames.
(REQUIRED_OFILES): Add dwarfnames.
(./dwarfnames.$(objext)): New target.
From-SVN: r186908
2012-04-27 16:14:14 +02:00
|
|
|
|
#define DW_TAG(name, value) , name = value
|
|
|
|
|
#define DW_TAG_DUP(name, value) , name = value
|
|
|
|
|
#define DW_FORM(name, value) , name = value
|
|
|
|
|
#define DW_AT(name, value) , name = value
|
|
|
|
|
#define DW_AT_DUP(name, value) , name = value
|
|
|
|
|
#define DW_OP(name, value) , name = value
|
|
|
|
|
#define DW_OP_DUP(name, value) , name = value
|
|
|
|
|
#define DW_ATE(name, value) , name = value
|
|
|
|
|
#define DW_ATE_DUP(name, value) , name = value
|
|
|
|
|
#define DW_CFA(name, value) , name = value
|
|
|
|
|
|
|
|
|
|
#define DW_FIRST_TAG(name, value) enum dwarf_tag { \
|
|
|
|
|
name = value
|
|
|
|
|
#define DW_END_TAG };
|
|
|
|
|
#define DW_FIRST_FORM(name, value) enum dwarf_form { \
|
|
|
|
|
name = value
|
|
|
|
|
#define DW_END_FORM };
|
|
|
|
|
#define DW_FIRST_AT(name, value) enum dwarf_attribute { \
|
|
|
|
|
name = value
|
|
|
|
|
#define DW_END_AT };
|
|
|
|
|
#define DW_FIRST_OP(name, value) enum dwarf_location_atom { \
|
|
|
|
|
name = value
|
|
|
|
|
#define DW_END_OP };
|
|
|
|
|
#define DW_FIRST_ATE(name, value) enum dwarf_type { \
|
|
|
|
|
name = value
|
|
|
|
|
#define DW_END_ATE };
|
|
|
|
|
#define DW_FIRST_CFA(name, value) enum dwarf_call_frame_info { \
|
|
|
|
|
name = value
|
|
|
|
|
#define DW_END_CFA };
|
|
|
|
|
|
|
|
|
|
#include "dwarf2.def"
|
|
|
|
|
|
|
|
|
|
#undef DW_FIRST_TAG
|
|
|
|
|
#undef DW_END_TAG
|
|
|
|
|
#undef DW_FIRST_FORM
|
|
|
|
|
#undef DW_END_FORM
|
|
|
|
|
#undef DW_FIRST_AT
|
|
|
|
|
#undef DW_END_AT
|
|
|
|
|
#undef DW_FIRST_OP
|
|
|
|
|
#undef DW_END_OP
|
|
|
|
|
#undef DW_FIRST_ATE
|
|
|
|
|
#undef DW_END_ATE
|
|
|
|
|
#undef DW_FIRST_CFA
|
|
|
|
|
#undef DW_END_CFA
|
|
|
|
|
|
|
|
|
|
#undef DW_TAG
|
|
|
|
|
#undef DW_TAG_DUP
|
|
|
|
|
#undef DW_FORM
|
|
|
|
|
#undef DW_AT
|
|
|
|
|
#undef DW_AT_DUP
|
|
|
|
|
#undef DW_OP
|
|
|
|
|
#undef DW_OP_DUP
|
|
|
|
|
#undef DW_ATE
|
|
|
|
|
#undef DW_ATE_DUP
|
|
|
|
|
#undef DW_CFA
|
1996-07-19 02:26:36 +02:00
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Flag that tells whether entry has a child or not. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
#define DW_children_no 0
|
|
|
|
|
#define DW_children_yes 1
|
|
|
|
|
|
2009-06-30 02:02:10 +02:00
|
|
|
|
#define DW_AT_stride_size DW_AT_bit_stride /* Note: The use of DW_AT_stride_size is deprecated. */
|
|
|
|
|
#define DW_AT_stride DW_AT_byte_stride /* Note: The use of DW_AT_stride is deprecated. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
|
dwarf2.h (DW_TAG_condition, [...]): New constants from DWARF 3.
* dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
from DWARF 3.
(DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
(DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
(DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
DW_DS_leading_separate, DW_DS_trailing_separate): New.
(DW_END_default, DW_END_big, DW_END_little): New.
(DW_END_lo_user, DW_END_hi_user): Define.
(DW_LNE_lo_user, DW_LNE_hi_user): Define.
(DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
(DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
DW_LANG_D): New.
From-SVN: r111620
2006-03-02 00:26:13 +01:00
|
|
|
|
/* Decimal sign encodings. */
|
|
|
|
|
enum dwarf_decimal_sign_encoding
|
|
|
|
|
{
|
|
|
|
|
/* DWARF 3. */
|
|
|
|
|
DW_DS_unsigned = 0x01,
|
|
|
|
|
DW_DS_leading_overpunch = 0x02,
|
|
|
|
|
DW_DS_trailing_overpunch = 0x03,
|
|
|
|
|
DW_DS_leading_separate = 0x04,
|
|
|
|
|
DW_DS_trailing_separate = 0x05
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* Endianity encodings. */
|
|
|
|
|
enum dwarf_endianity_encoding
|
|
|
|
|
{
|
|
|
|
|
/* DWARF 3. */
|
|
|
|
|
DW_END_default = 0x00,
|
|
|
|
|
DW_END_big = 0x01,
|
2009-04-24 17:31:38 +02:00
|
|
|
|
DW_END_little = 0x02,
|
dwarf2.h (DW_TAG_condition, [...]): New constants from DWARF 3.
* dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
from DWARF 3.
(DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
(DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
(DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
DW_DS_leading_separate, DW_DS_trailing_separate): New.
(DW_END_default, DW_END_big, DW_END_little): New.
(DW_END_lo_user, DW_END_hi_user): Define.
(DW_LNE_lo_user, DW_LNE_hi_user): Define.
(DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
(DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
DW_LANG_D): New.
From-SVN: r111620
2006-03-02 00:26:13 +01:00
|
|
|
|
|
2009-04-24 17:31:38 +02:00
|
|
|
|
DW_END_lo_user = 0x40,
|
|
|
|
|
DW_END_hi_user = 0xff
|
|
|
|
|
};
|
dwarf2.h (DW_TAG_condition, [...]): New constants from DWARF 3.
* dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
from DWARF 3.
(DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
(DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
(DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
DW_DS_leading_separate, DW_DS_trailing_separate): New.
(DW_END_default, DW_END_big, DW_END_little): New.
(DW_END_lo_user, DW_END_hi_user): Define.
(DW_LNE_lo_user, DW_LNE_hi_user): Define.
(DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
(DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
DW_LANG_D): New.
From-SVN: r111620
2006-03-02 00:26:13 +01:00
|
|
|
|
|
1996-07-19 02:26:36 +02:00
|
|
|
|
/* Array ordering names and codes. */
|
|
|
|
|
enum dwarf_array_dim_ordering
|
|
|
|
|
{
|
|
|
|
|
DW_ORD_row_major = 0,
|
|
|
|
|
DW_ORD_col_major = 1
|
|
|
|
|
};
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Access attribute. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
enum dwarf_access_attribute
|
|
|
|
|
{
|
|
|
|
|
DW_ACCESS_public = 1,
|
|
|
|
|
DW_ACCESS_protected = 2,
|
|
|
|
|
DW_ACCESS_private = 3
|
|
|
|
|
};
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Visibility. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
enum dwarf_visibility_attribute
|
|
|
|
|
{
|
|
|
|
|
DW_VIS_local = 1,
|
|
|
|
|
DW_VIS_exported = 2,
|
|
|
|
|
DW_VIS_qualified = 3
|
|
|
|
|
};
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Virtuality. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
enum dwarf_virtuality_attribute
|
|
|
|
|
{
|
|
|
|
|
DW_VIRTUALITY_none = 0,
|
|
|
|
|
DW_VIRTUALITY_virtual = 1,
|
|
|
|
|
DW_VIRTUALITY_pure_virtual = 2
|
|
|
|
|
};
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Case sensitivity. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
enum dwarf_id_case
|
|
|
|
|
{
|
|
|
|
|
DW_ID_case_sensitive = 0,
|
|
|
|
|
DW_ID_up_case = 1,
|
|
|
|
|
DW_ID_down_case = 2,
|
|
|
|
|
DW_ID_case_insensitive = 3
|
|
|
|
|
};
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Calling convention. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
enum dwarf_calling_convention
|
|
|
|
|
{
|
|
|
|
|
DW_CC_normal = 0x1,
|
|
|
|
|
DW_CC_program = 0x2,
|
2004-10-01 07:08:59 +02:00
|
|
|
|
DW_CC_nocall = 0x3,
|
2009-04-24 17:31:38 +02:00
|
|
|
|
|
|
|
|
|
DW_CC_lo_user = 0x40,
|
|
|
|
|
DW_CC_hi_user = 0xff,
|
|
|
|
|
|
2009-11-06 15:36:57 +01:00
|
|
|
|
DW_CC_GNU_renesas_sh = 0x40,
|
2011-02-23 09:57:49 +01:00
|
|
|
|
DW_CC_GNU_borland_fastcall_i386 = 0x41,
|
|
|
|
|
|
|
|
|
|
/* This DW_CC_ value is not currently generated by any toolchain. It is
|
|
|
|
|
used internally to GDB to indicate OpenCL C functions that have been
|
|
|
|
|
compiled with the IBM XL C for OpenCL compiler and use a non-platform
|
|
|
|
|
calling convention for passing OpenCL C vector types. This value may
|
|
|
|
|
be changed freely as long as it does not conflict with any other DW_CC_
|
|
|
|
|
value defined here. */
|
|
|
|
|
DW_CC_GDB_IBM_OpenCL = 0xff
|
1996-07-19 02:26:36 +02:00
|
|
|
|
};
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Inline attribute. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
enum dwarf_inline_attribute
|
|
|
|
|
{
|
|
|
|
|
DW_INL_not_inlined = 0,
|
|
|
|
|
DW_INL_inlined = 1,
|
|
|
|
|
DW_INL_declared_not_inlined = 2,
|
|
|
|
|
DW_INL_declared_inlined = 3
|
|
|
|
|
};
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Discriminant lists. */
|
1997-12-07 01:31:01 +01:00
|
|
|
|
enum dwarf_discrim_list
|
1996-07-19 02:26:36 +02:00
|
|
|
|
{
|
|
|
|
|
DW_DSC_label = 0,
|
|
|
|
|
DW_DSC_range = 1
|
|
|
|
|
};
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Line number opcodes. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
enum dwarf_line_number_ops
|
|
|
|
|
{
|
|
|
|
|
DW_LNS_extended_op = 0,
|
|
|
|
|
DW_LNS_copy = 1,
|
|
|
|
|
DW_LNS_advance_pc = 2,
|
|
|
|
|
DW_LNS_advance_line = 3,
|
|
|
|
|
DW_LNS_set_file = 4,
|
|
|
|
|
DW_LNS_set_column = 5,
|
|
|
|
|
DW_LNS_negate_stmt = 6,
|
|
|
|
|
DW_LNS_set_basic_block = 7,
|
|
|
|
|
DW_LNS_const_add_pc = 8,
|
2002-01-29 00:23:26 +01:00
|
|
|
|
DW_LNS_fixed_advance_pc = 9,
|
|
|
|
|
/* DWARF 3. */
|
|
|
|
|
DW_LNS_set_prologue_end = 10,
|
|
|
|
|
DW_LNS_set_epilogue_begin = 11,
|
|
|
|
|
DW_LNS_set_isa = 12
|
1996-07-19 02:26:36 +02:00
|
|
|
|
};
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* Line number extended opcodes. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
enum dwarf_line_number_x_ops
|
|
|
|
|
{
|
|
|
|
|
DW_LNE_end_sequence = 1,
|
|
|
|
|
DW_LNE_set_address = 2,
|
2004-10-06 22:27:15 +02:00
|
|
|
|
DW_LNE_define_file = 3,
|
2009-06-30 02:02:10 +02:00
|
|
|
|
DW_LNE_set_discriminator = 4,
|
2004-10-06 22:27:15 +02:00
|
|
|
|
/* HP extensions. */
|
|
|
|
|
DW_LNE_HP_negate_is_UV_update = 0x11,
|
|
|
|
|
DW_LNE_HP_push_context = 0x12,
|
|
|
|
|
DW_LNE_HP_pop_context = 0x13,
|
|
|
|
|
DW_LNE_HP_set_file_line_column = 0x14,
|
|
|
|
|
DW_LNE_HP_set_routine_name = 0x15,
|
|
|
|
|
DW_LNE_HP_set_sequence = 0x16,
|
|
|
|
|
DW_LNE_HP_negate_post_semantics = 0x17,
|
|
|
|
|
DW_LNE_HP_negate_function_exit = 0x18,
|
|
|
|
|
DW_LNE_HP_negate_front_end_logical = 0x19,
|
2009-04-24 17:31:38 +02:00
|
|
|
|
DW_LNE_HP_define_proc = 0x20,
|
dwarf2.h (enum dwarf_tag): Add DW_TAG_HP_Bliss_field and DW_TAG_HP_Bliss_field_set.
2010-06-08 Tristan Gingold <gingold@adacore.com>
* dwarf2.h (enum dwarf_tag): Add DW_TAG_HP_Bliss_field and
DW_TAG_HP_Bliss_field_set.
(enum dwarf_attribute): Add DW_AT_HP_prologue, DW_AT_HP_epilogue,
DW_AT_HP_unit_name, DW_AT_HP_unit_size, DW_AT_HP_widened_byte_size,
DW_AT_HP_definition_points, DW_AT_HP_default_location and
DW_AT_HP_is_result_param.
(enum dwarf_type): Add DW_ATE_HP_VAX_float, DW_ATE_HP_VAX_float_d,
DW_ATE_HP_packed_decimal, DW_ATE_HP_zoned_decimal, DW_ATE_HP_edited,
DW_ATE_HP_signed_fixed, DW_ATE_HP_unsigned_fixed,
DW_ATE_HP_VAX_complex_float and DW_ATE_HP_VAX_complex_float_d.
(enum dwarf_line_number_x_ops): Add
DW_LNE_HP_source_file_correlation.
(enum dwarf_source_language): Add DW_LANG_HP_Bliss,
DW_LANG_HP_Basic91, DW_LANG_HP_Pascal91, DW_LANG_HP_IMacro,
DW_LANG_HP_Assembler.
From-SVN: r160430
2010-06-08 11:51:27 +02:00
|
|
|
|
DW_LNE_HP_source_file_correlation = 0x80,
|
1996-07-19 02:26:36 +02:00
|
|
|
|
|
2009-04-24 17:31:38 +02:00
|
|
|
|
DW_LNE_lo_user = 0x80,
|
|
|
|
|
DW_LNE_hi_user = 0xff
|
|
|
|
|
};
|
dwarf2.h (DW_TAG_condition, [...]): New constants from DWARF 3.
* dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
from DWARF 3.
(DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
(DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
(DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
DW_DS_leading_separate, DW_DS_trailing_separate): New.
(DW_END_default, DW_END_big, DW_END_little): New.
(DW_END_lo_user, DW_END_hi_user): Define.
(DW_LNE_lo_user, DW_LNE_hi_user): Define.
(DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
(DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
DW_LANG_D): New.
From-SVN: r111620
2006-03-02 00:26:13 +01:00
|
|
|
|
|
2011-03-31 16:02:39 +02:00
|
|
|
|
/* Sub-opcodes for DW_LNE_HP_source_file_correlation. */
|
|
|
|
|
enum dwarf_line_number_hp_sfc_ops
|
|
|
|
|
{
|
|
|
|
|
DW_LNE_HP_SFC_formfeed = 1,
|
|
|
|
|
DW_LNE_HP_SFC_set_listing_line = 2,
|
|
|
|
|
DW_LNE_HP_SFC_associate = 3
|
|
|
|
|
};
|
|
|
|
|
|
common.opt (gno-split-dwarf, [...]): New switches.
gcc/ChangeLog
2012-11-06 Sterling Augustine <saugustine@google.com>
Cary Coutant <ccoutant@google.com>
* common.opt (gno-split-dwarf, gsplit-dwarf): New switches.
* doc/invoke.texi (Debugging Options): Document them.
* gcc.c (replace_extension_spec_func): New function.
(ASM_FINAL_SPEC): Adjust.
(static_spec_functions): Add new field for replace-extension.
(check_live_switch): Adjust comment. Add case for 'g'.
* opts.c (finish_options): Set x_debug_generate_pub_sections based on
x_dwarf_split_debug_info.
(common_handle_option): Add case for OPT_gsplit_dwarf.
* dwarf2out.h (addr_table_entry_struct): Add forward declaration.
(dw_val_struct): Add val_entry pointer.
* dwarf2out.c: (debug_skeleton_info_section,
debug_skeleton_abbrev_section, debug_addr_section,
debug_skeleton_line_section, debug_str_offsets_section): New globals.
(NOT_INDEXED, NO_INDEX_ASSIGNED): New defines.
(indirect_string_node): New field index.
(ate_kind): New enum with fields ate_kind_rtc, ate_kind_rtx_dtprel,
ate_kind_label.
(addr_table_entry): New structure and type.
(dw_loc_list_struct): Add field begin_entry.
(new_loc_desc): Initialize val_entry.
(size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
Add cases for DW_OP_GNU_addr_index and DW_OP_const_index.
(build_cfa_loc): Initialize val_entry.
(AT_index, add_addr_table_entry, remove_addr_table_entry,
add_AT_lbl_id): New functions.
(add_AT_addr, add_AT_range_list): New parameter force_direct.
(output_die_abbrevs): New function.
(add_ranges_by_labels): New parameter force_direct.
(output_line_info): New parameter prologue_only.
(dtprel_bool): New enum with dtprel_false and dtprel_true.
(dw_addr_op, new_addr_loc_descr): New functions.
(DEBUG_DWO_INFO_SECTION, DEBUG_DWO_ABBREV_SECTION,
DEBUG_ADDR_SECTION, DEBUG_NORM_MACINFO_SECTION,
DEBUG_DWO_MACINFO_SECTION, DEBUG_MACINFO_SECTION,
DEBUG_NORM_MACRO_SECTION, DEBUG_DWO_MACRO_SECTION,
DEBUG_MACRO_SECTION, DEBUG_DWO_LINE_SECTION,
DEBUG_DWO_LOC_SECTION, DEBUG_NORM_STR_OFFSETS_SECTION,
DEBUG_DWO_STR_OFFSETS_SECTION, DEBUG_STR_OFFSETS_SECTION,
DEBUG_DWO_STR_SECTION, DEBUG_NORM_STR_SECTION, DEBUG_STR_SECTION,
DEBUG_MACRO_SECTION_FLAGS, DEBUG_SKELETON_LINE_SECTION_LABEL,
DEBUG_SKELETON_INFO_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL
DEBUG_SKELETON_ABBREV_SECTION_LABEL): New macros.
(DEBUG_STR_SECTION_FLAGS): Adjust.
(TEXT_SECTION_LABEL, COLD_TEXT_SECTION_LABEL,
DEBUG_LINE_SECTION_LABEL, DEBUG_INFO_SECTION_LABEL,
DEBUG_ABBREV_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL,
DEBUG_LOC_SECTION_LABEL, DEBUG_RANGES_SECTION_LABEL,
DEBUG_MACINFO_SECTION_LABEL, DEBUG_MACRO_SECTION_LABEL): Adjust
indentation.
(debug_skeleton_abbrev_section_label, debug_addr_section_label,
debug_skeleton_line_section_label, debug_skeleton_info_section_label):
New global variables.
(add_AT_flag, add_AT_int, add_AT_unsigned, add_AT_double, add_AT_vec,
add_AT_data8): Initialize val_entry.
(add_AT_low_high_pc): New parameter force_direct. Handle
dwarf_split_debug_info.
(set_indirect_string, find_AT_string_form): New functions.
(AT_string_form): Adjust to call find_AT_string_from.
(add_AT_die_ref, add_AT_fde_ref, add_AT_loc, add_AT_list):
Initialize val_entry.
(addr_index_table): New global variable.
(addr_table_entry_do_hash, addr_table_entry_eq, add_addr_table_entry,
init_addr_table_entry, remove_addr_table_entry, index_addr_table_entry,
remove_loc_list_addr_table_entries): New functions.
(add_AT_addr, add_AT_lbl_id, add_AT_range_list): New parameter
force_direct. Handle dwarf_split_debug_info.
(add_AT_file, add_AT_vms_delta, add_AT_lineptr, add_AT_macptr,
add_AT_offset): Initialize val_entry.
(UNRELOCATED_OFFSET, RELOCATED_OFFSET): New defines.
(size_of_die): Handle dwarf_split_debug_info.
(size_of_aranges, value_format): Call AT_class. Check AT_index.
(output_die_abbrevs): New function.
(output_abbrev_section): Call output_die_abbrevs.
(new_loc_list): Initialize begin_entry.
(output_loc_list): Handle dwarf_split_debug_info.
(output_range_list_offset, output_loc_list_offset,
output_attr_index_or_value, ): New functions.
(output_die): Fix call to dw2_asm_output_data. Call
output_attr_index_or_value and output_range_list_offset.
Adjust logic around dw_val_class_str.
(add_top_lebel_skeleton_die_attrs, get_skeleton_type_unit,
output_skeleton_debug_sections): New functions.
(output_comdat_type_unit, output_pubname, output_aranges): Handle
dwarf_split_debug_info.
(add_ranges_by_labels): New parameter force_direct.
(mem_loc_descriptor, loc_descr): Call new_addr_loc_descr.
(loc_list_from_tree, add_const_value_attribtue): Use dtprel_bools in
place of generic integer.
(dwarf2out_vms_debug_main_pointer, gen_entry_point_die, gen_label_die,
gen_call_site_die, gen_subprogram_die, gen_variable_die,
add_high_low_attributes): Adjust calls to add_AT_lbl_id.
(output_macinfo_op): Adjust indirect_string_logic.
(save_macinfo_strings): New function.
(output_macinfo): Adjust.
(dwarf2out_init): Handle dwarf_split_debug_info.
(index_string, output_index_string_offset, output_index_string): New
functions.
(output_indirect_string): Adjust.
(output_indirect_strings, output_addr_table_entry, output_addr_table):
New functions.
(resolve_addr_in_expr, hash_loc_operands): Handle DW_OP_GNU_addr_index
and DW_OP_GNU_const_index. Handle dwarf_split_debug_info. Call
remove_loc_list_addr_table_entries and remove_addr_table_entry.
(index_location_lists): New function.
(dwarf2out_finish): Handle dwarf_split_debug_info. New variable
main_comp_unit_die. Adjust calls to add_AT_low_high_pc,
add_ranges_by_labels, add_AT_addr, and add_AT_lineptr. Call
save_macinfo_strings and output_indirect_strings.
include/ChangeLog
2012-10-29 Sterling Augustine <saugustine@google.com>
Cary Coutant <ccoutant@google.com>
* dwarf2.h (dwarf_location_list_entry_type): New enum with fields
DW_LLE_GNU_end_of_list_entry, DW_LLE_GNU_base_address_selection_entry,
DW_LLE_GNU_start_end_entry and DW_LLE_GNU_start_length_entry.
Co-Authored-By: Cary Coutant <ccoutant@google.com>
From-SVN: r193267
2012-11-07 00:15:25 +01:00
|
|
|
|
/* Type codes for location list entries.
|
|
|
|
|
Extension for Fission. See http://gcc.gnu.org/wiki/DebugFission. */
|
|
|
|
|
|
|
|
|
|
enum dwarf_location_list_entry_type
|
|
|
|
|
{
|
|
|
|
|
DW_LLE_GNU_end_of_list_entry = 0,
|
|
|
|
|
DW_LLE_GNU_base_address_selection_entry = 1,
|
|
|
|
|
DW_LLE_GNU_start_end_entry = 2,
|
|
|
|
|
DW_LLE_GNU_start_length_entry = 3
|
|
|
|
|
};
|
|
|
|
|
|
1996-07-19 02:26:36 +02:00
|
|
|
|
#define DW_CIE_ID 0xffffffff
|
2006-04-01 02:21:46 +02:00
|
|
|
|
#define DW64_CIE_ID 0xffffffffffffffffULL
|
2009-06-30 02:02:10 +02:00
|
|
|
|
#define DW_CIE_VERSION 1
|
1996-07-19 02:26:36 +02:00
|
|
|
|
|
|
|
|
|
#define DW_CFA_extended 0
|
|
|
|
|
|
|
|
|
|
#define DW_CHILDREN_no 0x00
|
|
|
|
|
#define DW_CHILDREN_yes 0x01
|
|
|
|
|
|
|
|
|
|
#define DW_ADDR_none 0
|
|
|
|
|
|
|
|
|
|
/* Source language names and codes. */
|
|
|
|
|
enum dwarf_source_language
|
|
|
|
|
{
|
|
|
|
|
DW_LANG_C89 = 0x0001,
|
|
|
|
|
DW_LANG_C = 0x0002,
|
|
|
|
|
DW_LANG_Ada83 = 0x0003,
|
|
|
|
|
DW_LANG_C_plus_plus = 0x0004,
|
|
|
|
|
DW_LANG_Cobol74 = 0x0005,
|
|
|
|
|
DW_LANG_Cobol85 = 0x0006,
|
|
|
|
|
DW_LANG_Fortran77 = 0x0007,
|
|
|
|
|
DW_LANG_Fortran90 = 0x0008,
|
|
|
|
|
DW_LANG_Pascal83 = 0x0009,
|
|
|
|
|
DW_LANG_Modula2 = 0x000a,
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* DWARF 3. */
|
dwarf2.h (DW_TAG_condition, [...]): New constants from DWARF 3.
* dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
from DWARF 3.
(DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
(DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
(DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
DW_DS_leading_separate, DW_DS_trailing_separate): New.
(DW_END_default, DW_END_big, DW_END_little): New.
(DW_END_lo_user, DW_END_hi_user): Define.
(DW_LNE_lo_user, DW_LNE_hi_user): Define.
(DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
(DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
DW_LANG_D): New.
From-SVN: r111620
2006-03-02 00:26:13 +01:00
|
|
|
|
DW_LANG_Java = 0x000b,
|
2001-06-29 18:52:08 +02:00
|
|
|
|
DW_LANG_C99 = 0x000c,
|
|
|
|
|
DW_LANG_Ada95 = 0x000d,
|
|
|
|
|
DW_LANG_Fortran95 = 0x000e,
|
dwarf2.h (DW_TAG_condition, [...]): New constants from DWARF 3.
* dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
from DWARF 3.
(DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
(DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
(DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
(DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
DW_DS_leading_separate, DW_DS_trailing_separate): New.
(DW_END_default, DW_END_big, DW_END_little): New.
(DW_END_lo_user, DW_END_hi_user): Define.
(DW_LNE_lo_user, DW_LNE_hi_user): Define.
(DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
(DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
DW_LANG_D): New.
From-SVN: r111620
2006-03-02 00:26:13 +01:00
|
|
|
|
DW_LANG_PLI = 0x000f,
|
|
|
|
|
DW_LANG_ObjC = 0x0010,
|
|
|
|
|
DW_LANG_ObjC_plus_plus = 0x0011,
|
|
|
|
|
DW_LANG_UPC = 0x0012,
|
|
|
|
|
DW_LANG_D = 0x0013,
|
dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type and DW_TAG_template_alias.
* dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
and DW_TAG_template_alias.
(dwarf_attr_name): Handle DW_AT_main_subprogram,
DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
and DW_AT_GNU_odr_signature.
(dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
DW_FORM_flag_present and DW_FORM_ref_sig8.
(output_signature): Only print name on the first byte.
(output_die): Likewise for dw_val_class_data8.
* include/dwarf2.h (DW_LANG_Python): Add comment that it is
a DWARF 4 addition.
From-SVN: r152853
2009-10-15 18:40:52 +02:00
|
|
|
|
/* DWARF 4. */
|
Add rest of new values from DWARF Version 4.
include/
Add rest of new values from DWARF Version 4.
* dwarf2.h (DW_TAG_rvalue_reference_type, DW_TAG_template_alias):
New tags.
(DW_FORM_ref_sig8): New name for DW_FORM_sig8.
(DW_AT_main_subprogram, DW_AT_data_bit_offset, DW_AT_const_expr,
DW_AT_enum_class, DW_AT_linkage_name, DW_AT_GNU_guarded_by,
DW_AT_GNU_pt_guarded_by, DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded,
DW_AT_GNU_locks_excluded, DW_AT_GNU_exclusive_locks_required,
DW_AT_GNU_shared_locks_required, DW_AT_GNU_odr_signature): New
attributes.
(DW_LANG_Python): New language.
From-SVN: r152181
2009-09-25 20:33:04 +02:00
|
|
|
|
DW_LANG_Python = 0x0014,
|
2010-11-05 18:56:58 +01:00
|
|
|
|
/* DWARF 5. */
|
|
|
|
|
DW_LANG_Go = 0x0016,
|
2009-04-24 17:31:38 +02:00
|
|
|
|
|
2014-11-26 12:05:20 +01:00
|
|
|
|
DW_LANG_C_plus_plus_11 = 0x001a, /* dwarf5.20141029.pdf DRAFT */
|
|
|
|
|
DW_LANG_C11 = 0x001d,
|
|
|
|
|
DW_LANG_C_plus_plus_14 = 0x0021,
|
2015-02-04 23:38:48 +01:00
|
|
|
|
DW_LANG_Fortran03 = 0x0022,
|
|
|
|
|
DW_LANG_Fortran08 = 0x0023,
|
2014-11-26 12:05:20 +01:00
|
|
|
|
|
2009-04-24 17:31:38 +02:00
|
|
|
|
DW_LANG_lo_user = 0x8000, /* Implementation-defined range start. */
|
|
|
|
|
DW_LANG_hi_user = 0xffff, /* Implementation-defined range start. */
|
|
|
|
|
|
2002-01-29 00:23:26 +01:00
|
|
|
|
/* MIPS. */
|
2004-10-06 22:27:15 +02:00
|
|
|
|
DW_LANG_Mips_Assembler = 0x8001,
|
|
|
|
|
/* UPC. */
|
dwarf2.h (enum dwarf_tag): Add DW_TAG_HP_Bliss_field and DW_TAG_HP_Bliss_field_set.
2010-06-08 Tristan Gingold <gingold@adacore.com>
* dwarf2.h (enum dwarf_tag): Add DW_TAG_HP_Bliss_field and
DW_TAG_HP_Bliss_field_set.
(enum dwarf_attribute): Add DW_AT_HP_prologue, DW_AT_HP_epilogue,
DW_AT_HP_unit_name, DW_AT_HP_unit_size, DW_AT_HP_widened_byte_size,
DW_AT_HP_definition_points, DW_AT_HP_default_location and
DW_AT_HP_is_result_param.
(enum dwarf_type): Add DW_ATE_HP_VAX_float, DW_ATE_HP_VAX_float_d,
DW_ATE_HP_packed_decimal, DW_ATE_HP_zoned_decimal, DW_ATE_HP_edited,
DW_ATE_HP_signed_fixed, DW_ATE_HP_unsigned_fixed,
DW_ATE_HP_VAX_complex_float and DW_ATE_HP_VAX_complex_float_d.
(enum dwarf_line_number_x_ops): Add
DW_LNE_HP_source_file_correlation.
(enum dwarf_source_language): Add DW_LANG_HP_Bliss,
DW_LANG_HP_Basic91, DW_LANG_HP_Pascal91, DW_LANG_HP_IMacro,
DW_LANG_HP_Assembler.
From-SVN: r160430
2010-06-08 11:51:27 +02:00
|
|
|
|
DW_LANG_Upc = 0x8765,
|
|
|
|
|
/* HP extensions. */
|
|
|
|
|
DW_LANG_HP_Bliss = 0x8003,
|
|
|
|
|
DW_LANG_HP_Basic91 = 0x8004,
|
|
|
|
|
DW_LANG_HP_Pascal91 = 0x8005,
|
|
|
|
|
DW_LANG_HP_IMacro = 0x8006,
|
|
|
|
|
DW_LANG_HP_Assembler = 0x8007
|
1996-07-19 02:26:36 +02:00
|
|
|
|
};
|
|
|
|
|
|
1996-11-18 23:42:34 +01:00
|
|
|
|
/* Names and codes for macro information. */
|
1996-07-19 02:26:36 +02:00
|
|
|
|
enum dwarf_macinfo_record_type
|
|
|
|
|
{
|
|
|
|
|
DW_MACINFO_define = 1,
|
|
|
|
|
DW_MACINFO_undef = 2,
|
|
|
|
|
DW_MACINFO_start_file = 3,
|
|
|
|
|
DW_MACINFO_end_file = 4,
|
1996-11-18 23:42:34 +01:00
|
|
|
|
DW_MACINFO_vendor_ext = 255
|
1996-07-19 02:26:36 +02:00
|
|
|
|
};
|
2011-07-22 22:06:09 +02:00
|
|
|
|
|
|
|
|
|
/* Names and codes for new style macro information. */
|
|
|
|
|
enum dwarf_macro_record_type
|
|
|
|
|
{
|
|
|
|
|
DW_MACRO_GNU_define = 1,
|
|
|
|
|
DW_MACRO_GNU_undef = 2,
|
|
|
|
|
DW_MACRO_GNU_start_file = 3,
|
|
|
|
|
DW_MACRO_GNU_end_file = 4,
|
|
|
|
|
DW_MACRO_GNU_define_indirect = 5,
|
|
|
|
|
DW_MACRO_GNU_undef_indirect = 6,
|
|
|
|
|
DW_MACRO_GNU_transparent_include = 7,
|
2012-06-08 20:52:32 +02:00
|
|
|
|
/* Extensions for DWZ multifile.
|
|
|
|
|
See http://www.dwarfstd.org/ShowIssue.php?issue=120604.1&type=open . */
|
2012-06-08 20:48:46 +02:00
|
|
|
|
DW_MACRO_GNU_define_indirect_alt = 8,
|
|
|
|
|
DW_MACRO_GNU_undef_indirect_alt = 9,
|
|
|
|
|
DW_MACRO_GNU_transparent_include_alt = 10,
|
2011-07-22 22:06:09 +02:00
|
|
|
|
DW_MACRO_GNU_lo_user = 0xe0,
|
|
|
|
|
DW_MACRO_GNU_hi_user = 0xff
|
|
|
|
|
};
|
2001-03-28 13:04:51 +02:00
|
|
|
|
|
|
|
|
|
/* @@@ For use with GNU frame unwind information. */
|
|
|
|
|
|
|
|
|
|
#define DW_EH_PE_absptr 0x00
|
|
|
|
|
#define DW_EH_PE_omit 0xff
|
|
|
|
|
|
|
|
|
|
#define DW_EH_PE_uleb128 0x01
|
|
|
|
|
#define DW_EH_PE_udata2 0x02
|
|
|
|
|
#define DW_EH_PE_udata4 0x03
|
|
|
|
|
#define DW_EH_PE_udata8 0x04
|
|
|
|
|
#define DW_EH_PE_sleb128 0x09
|
|
|
|
|
#define DW_EH_PE_sdata2 0x0A
|
|
|
|
|
#define DW_EH_PE_sdata4 0x0B
|
|
|
|
|
#define DW_EH_PE_sdata8 0x0C
|
|
|
|
|
#define DW_EH_PE_signed 0x08
|
|
|
|
|
|
|
|
|
|
#define DW_EH_PE_pcrel 0x10
|
|
|
|
|
#define DW_EH_PE_textrel 0x20
|
|
|
|
|
#define DW_EH_PE_datarel 0x30
|
|
|
|
|
#define DW_EH_PE_funcrel 0x40
|
2001-06-06 03:57:49 +02:00
|
|
|
|
#define DW_EH_PE_aligned 0x50
|
2001-03-28 13:04:51 +02:00
|
|
|
|
|
|
|
|
|
#define DW_EH_PE_indirect 0x80
|
2004-01-08 08:50:46 +01:00
|
|
|
|
|
2013-03-02 00:35:58 +01:00
|
|
|
|
/* Codes for the debug sections in a dwarf package (.dwp) file.
|
|
|
|
|
Extensions for Fission. See http://gcc.gnu.org/wiki/DebugFissionDWP. */
|
|
|
|
|
enum dwarf_sect
|
|
|
|
|
{
|
|
|
|
|
DW_SECT_INFO = 1,
|
|
|
|
|
DW_SECT_TYPES = 2,
|
|
|
|
|
DW_SECT_ABBREV = 3,
|
|
|
|
|
DW_SECT_LINE = 4,
|
|
|
|
|
DW_SECT_LOC = 5,
|
|
|
|
|
DW_SECT_STR_OFFSETS = 6,
|
|
|
|
|
DW_SECT_MACINFO = 7,
|
|
|
|
|
DW_SECT_MACRO = 8,
|
|
|
|
|
DW_SECT_MAX = 8
|
|
|
|
|
};
|
dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
gcc
* dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
(dwarf_tag_name): Use get_DW_TAG_name.
(dwarf_attr_name): Use get_DW_AT_name.
(dwarf_form_name): Use get_DW_FORM_name.
* dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
include
* dwarf2.h (enum dwarf_tag, enum dwarf_form, enum dwarf_attribute)
(enum dwarf_location_atom, enum dwarf_type, enum
dwarf_call_frame_info): Remove.
(DW_TAG, DW_TAG_DUP, DW_FORM, DW_AT, DW_AT_DUP, DW_OP)
(DW_OP_DUP, DW_ATE, DW_ATE_DUP, DW_CFA): New macros.
Include dwarf2.def.
(get_DW_TAG_name, get_DW_AT_name, get_DW_FORM_name)
(get_DW_OP_name, get_DW_ATE_name): Declare.
* dwarf2.def: New file, from dwarf2.h.
libiberty
* dwarfnames.c: New file.
* Makefile.in (CFILES): Add dwarfnames.
(REQUIRED_OFILES): Add dwarfnames.
(./dwarfnames.$(objext)): New target.
From-SVN: r186908
2012-04-27 16:14:14 +02:00
|
|
|
|
|
2012-04-27 18:58:53 +02:00
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
gcc
* dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
(dwarf_tag_name): Use get_DW_TAG_name.
(dwarf_attr_name): Use get_DW_AT_name.
(dwarf_form_name): Use get_DW_FORM_name.
* dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
include
* dwarf2.h (enum dwarf_tag, enum dwarf_form, enum dwarf_attribute)
(enum dwarf_location_atom, enum dwarf_type, enum
dwarf_call_frame_info): Remove.
(DW_TAG, DW_TAG_DUP, DW_FORM, DW_AT, DW_AT_DUP, DW_OP)
(DW_OP_DUP, DW_ATE, DW_ATE_DUP, DW_CFA): New macros.
Include dwarf2.def.
(get_DW_TAG_name, get_DW_AT_name, get_DW_FORM_name)
(get_DW_OP_name, get_DW_ATE_name): Declare.
* dwarf2.def: New file, from dwarf2.h.
libiberty
* dwarfnames.c: New file.
* Makefile.in (CFILES): Add dwarfnames.
(REQUIRED_OFILES): Add dwarfnames.
(./dwarfnames.$(objext)): New target.
From-SVN: r186908
2012-04-27 16:14:14 +02:00
|
|
|
|
/* Return the name of a DW_TAG_ constant, or NULL if the value is not
|
|
|
|
|
recognized. */
|
|
|
|
|
extern const char *get_DW_TAG_name (unsigned int tag);
|
|
|
|
|
|
|
|
|
|
/* Return the name of a DW_AT_ constant, or NULL if the value is not
|
|
|
|
|
recognized. */
|
|
|
|
|
extern const char *get_DW_AT_name (unsigned int attr);
|
|
|
|
|
|
|
|
|
|
/* Return the name of a DW_FORM_ constant, or NULL if the value is not
|
|
|
|
|
recognized. */
|
|
|
|
|
extern const char *get_DW_FORM_name (unsigned int form);
|
|
|
|
|
|
|
|
|
|
/* Return the name of a DW_OP_ constant, or NULL if the value is not
|
|
|
|
|
recognized. */
|
|
|
|
|
extern const char *get_DW_OP_name (unsigned int op);
|
|
|
|
|
|
|
|
|
|
/* Return the name of a DW_ATE_ constant, or NULL if the value is not
|
|
|
|
|
recognized. */
|
|
|
|
|
extern const char *get_DW_ATE_name (unsigned int enc);
|
|
|
|
|
|
|
|
|
|
/* Return the name of a DW_CFA_ constant, or NULL if the value is not
|
|
|
|
|
recognized. */
|
|
|
|
|
extern const char *get_DW_CFA_name (unsigned int opc);
|
|
|
|
|
|
2012-04-27 18:58:53 +02:00
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
2011-02-23 09:57:49 +01:00
|
|
|
|
#endif /* _DWARF2_H */
|