From 513f8c0cb840bdfd2cae0a87ac63edf8ff12ba7a Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 12 Jun 2013 20:05:19 +0000 Subject: [PATCH] Handle DW_TAG_rvalue_reference_type 2012-05-21 Jim Ingham * dwarf2read.c (process_die): Handle DW_TAG_rvalue_reference_type. (read_type_die): Ditto. (dwarf_tag_name): Ditto. * elf/dwarf2.h: Add DW_TAG_rvalue_reference_type. Obtained from: Apple, gdb-1820 --- contrib/binutils/include/elf/dwarf2.h | 1 + contrib/gdb/gdb/dwarf2read.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/contrib/binutils/include/elf/dwarf2.h b/contrib/binutils/include/elf/dwarf2.h index 9877f1c094b6..90ebfa784e81 100644 --- a/contrib/binutils/include/elf/dwarf2.h +++ b/contrib/binutils/include/elf/dwarf2.h @@ -189,6 +189,7 @@ enum dwarf_tag DW_TAG_imported_unit = 0x3d, DW_TAG_condition = 0x3f, DW_TAG_shared_type = 0x40, + DW_TAG_rvalue_reference_type = 0x42, /* SGI/MIPS Extensions. */ DW_TAG_MIPS_loop = 0x4081, /* HP extensions. See: ftp://ftp.hp.com/pub/lang/tools/WDB/wdb-4.0.tar.gz . */ diff --git a/contrib/gdb/gdb/dwarf2read.c b/contrib/gdb/gdb/dwarf2read.c index 7a1b52ee1d94..2e2737de0011 100644 --- a/contrib/gdb/gdb/dwarf2read.c +++ b/contrib/gdb/gdb/dwarf2read.c @@ -1977,6 +1977,7 @@ process_die (struct die_info *die, struct dwarf2_cu *cu) read_tag_ptr_to_member_type (die, cu); break; case DW_TAG_reference_type: + case DW_TAG_rvalue_reference_type: read_tag_reference_type (die, cu); break; case DW_TAG_string_type: @@ -6097,6 +6098,7 @@ read_type_die (struct die_info *die, struct dwarf2_cu *cu) read_tag_ptr_to_member_type (die, cu); break; case DW_TAG_reference_type: + case DW_TAG_rvalue_reference_type: read_tag_reference_type (die, cu); break; case DW_TAG_const_type: @@ -6425,6 +6427,8 @@ dwarf_tag_name (unsigned tag) return "DW_TAG_pointer_type"; case DW_TAG_reference_type: return "DW_TAG_reference_type"; + case DW_TAG_rvalue_reference_type: + return "DW_TAG_rvalue_reference_type"; case DW_TAG_compile_unit: return "DW_TAG_compile_unit"; case DW_TAG_string_type: