diff options
Diffstat (limited to 'tests/show-die-info.c')
-rw-r--r-- | tests/show-die-info.c | 82 |
1 files changed, 66 insertions, 16 deletions
diff --git a/tests/show-die-info.c b/tests/show-die-info.c index d4f992f3..19015ca1 100644 --- a/tests/show-die-info.c +++ b/tests/show-die-info.c @@ -1,22 +1,34 @@ -/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Red Hat, Inc. +/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2006 Red Hat, Inc. + This file is part of Red Hat elfutils. Written by Ulrich Drepper <drepper@redhat.com>, 1998. - This program is Open Source software; you can redistribute it and/or - modify it under the terms of the Open Software License version 1.0 as - published by the Open Source Initiative. + Red Hat elfutils 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 Software Foundation; version 2 of the License. - You should have received a copy of the Open Software License along - with this program; if not, you may obtain a copy of the Open Software - License version 1.0 from http://www.opensource.org/licenses/osl.php or - by writing the Open Source Initiative c/o Lawrence Rosen, Esq., - 3001 King Ranch Road, Ukiah, CA 95482. */ + Red Hat elfutils 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. + + You should have received a copy of the GNU General Public License along + with Red Hat elfutils; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. + + Red Hat elfutils is an included package of the Open Invention Network. + An included package of the Open Invention Network is a package for which + Open Invention Network licensees cross-license their patents. No patent + license is granted, either expressly or impliedly, by designation as an + included package. Should you wish to participate in the Open Invention + Network licensing program, please visit www.openinventionnetwork.com + <http://www.openinventionnetwork.com>. */ #include <config.h> #include <dwarf.h> #include <inttypes.h> #include <libelf.h> -#include <libdw.h> +#include ELFUTILS_HEADER(dw) #include <fcntl.h> #include <stdio.h> #include <string.h> @@ -65,13 +77,24 @@ static const char *tagnames[] = [DW_TAG_namelist_item] = "DW_TAG_namelist_item", [DW_TAG_packed_type] = "DW_TAG_packed_type", [DW_TAG_subprogram] = "DW_TAG_subprogram", - [DW_TAG_template_type_param] = "DW_TAG_template_type_param", - [DW_TAG_template_value_param] = "DW_TAG_template_value_param", + [DW_TAG_template_type_parameter] = "DW_TAG_template_type_parameter", + [DW_TAG_template_value_parameter] = "DW_TAG_template_value_parameter", [DW_TAG_thrown_type] = "DW_TAG_thrown_type", [DW_TAG_try_block] = "DW_TAG_try_block", [DW_TAG_variant_part] = "DW_TAG_variant_part", [DW_TAG_variable] = "DW_TAG_variable", - [DW_TAG_volatile_type] = "DW_TAG_volatile_type" + [DW_TAG_volatile_type] = "DW_TAG_volatile_type", + [DW_TAG_dwarf_procedure] = "DW_TAG_dwarf_procedure", + [DW_TAG_restrict_type] = "DW_TAG_restrict_type", + [DW_TAG_interface_type] = "DW_TAG_interface_type", + [DW_TAG_namespace] = "DW_TAG_namespace", + [DW_TAG_imported_module] = "DW_TAG_imported_module", + [DW_TAG_unspecified_type] = "DW_TAG_unspecified_type", + [DW_TAG_partial_unit] = "DW_TAG_partial_unit", + [DW_TAG_imported_unit] = "DW_TAG_imported_unit", + [DW_TAG_mutable_type] = "DW_TAG_mutable_type", + [DW_TAG_condition] = "DW_TAG_condition", + [DW_TAG_shared_type] = "DW_TAG_shared_type", }; #define ntagnames (sizeof (tagnames) / sizeof (tagnames[0])) @@ -113,7 +136,7 @@ const struct { DW_AT_prototyped, "prototyped" }, { DW_AT_return_addr, "return_addr" }, { DW_AT_start_scope, "start_scope" }, - { DW_AT_stride_size, "stride_size" }, + { DW_AT_bit_stride, "bit_stride" }, { DW_AT_upper_bound, "upper_bound" }, { DW_AT_abstract_origin, "abstract_origin" }, { DW_AT_accessibility, "accessibility" }, @@ -134,7 +157,7 @@ const struct { DW_AT_friend, "friend" }, { DW_AT_identifier_case, "identifier_case" }, { DW_AT_macro_info, "macro_info" }, - { DW_AT_namelist_items, "namelist_items" }, + { DW_AT_namelist_item, "namelist_item" }, { DW_AT_priority, "priority" }, { DW_AT_segment, "segment" }, { DW_AT_specification, "specification" }, @@ -144,6 +167,33 @@ const struct { DW_AT_variable_parameter, "variable_parameter" }, { DW_AT_virtuality, "virtuality" }, { DW_AT_vtable_elem_location, "vtable_elem_location" }, + { DW_AT_allocated, "allocated" }, + { DW_AT_associated, "associated" }, + { DW_AT_data_location, "data_location" }, + { DW_AT_byte_stride, "byte_stride" }, + { DW_AT_entry_pc, "entry_pc" }, + { DW_AT_use_UTF8, "use_UTF8" }, + { DW_AT_extension, "extension" }, + { DW_AT_ranges, "ranges" }, + { DW_AT_trampoline, "trampoline" }, + { DW_AT_call_column, "call_column" }, + { DW_AT_call_file, "call_file" }, + { DW_AT_call_line, "call_line" }, + { DW_AT_description, "description" }, + { DW_AT_binary_scale, "binary_scale" }, + { DW_AT_decimal_scale, "decimal_scale" }, + { DW_AT_small, "small" }, + { DW_AT_decimal_sign, "decimal_sign" }, + { DW_AT_digit_count, "digit_count" }, + { DW_AT_picture_string, "picture_string" }, + { DW_AT_mutable, "mutable" }, + { DW_AT_threads_scaled, "threads_scaled" }, + { DW_AT_explicit, "explicit" }, + { DW_AT_object_pointer, "object_pointer" }, + { DW_AT_endianity, "endianity" }, + { DW_AT_elemental, "elemental" }, + { DW_AT_pure, "pure" }, + { DW_AT_recursive, "recursive" }, { DW_AT_MIPS_fde, "MIPS_fde" }, { DW_AT_MIPS_loop_begin, "MIPS_loop_begin" }, { DW_AT_MIPS_tail_loop_begin, "MIPS_tail_loop_begin" }, @@ -166,7 +216,7 @@ const struct { DW_AT_mac_info, "mac_info" }, { DW_AT_src_coords, "src_coords" }, { DW_AT_body_begin, "body_begin" }, - { DW_AT_body_end, "body_end" } + { DW_AT_body_end, "body_end" }, }; #define nattrs (sizeof (attrs) / sizeof (attrs[0])) |