aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-07-20 16:51:51 +0000
committerTom Tromey <tromey@redhat.com>2012-07-20 16:51:51 +0000
commitf7a35f025bd80233c01edb9321aad6f7b523c756 (patch)
tree6b40b1fd57e547e6501e80e8b4f3870160e41980 /gdb/dwarf2read.c
parentb81e1ee05cf1799f6e964c623d99811132a2ae16 (diff)
downloadgdb-f7a35f025bd80233c01edb9321aad6f7b523c756.zip
gdb-f7a35f025bd80233c01edb9321aad6f7b523c756.tar.gz
gdb-f7a35f025bd80233c01edb9321aad6f7b523c756.tar.bz2
2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com> * dwarf2read.c (dwarf_decode_macros) <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt, DW_MACRO_GNU_transparent_include_alt>: New cases. (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect, DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index baa2241..9f8de43 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -17539,7 +17539,8 @@ dwarf_decode_macro_bytes (bfd *abfd, gdb_byte *mac_ptr, gdb_byte *mac_end,
mac_ptr += offset_size;
if (macinfo_type == DW_MACRO_GNU_define_indirect_alt
- || macinfo_type == DW_MACRO_GNU_undef_indirect_alt)
+ || macinfo_type == DW_MACRO_GNU_undef_indirect_alt
+ || section_is_dwz)
{
struct dwz_file *dwz = dwarf2_get_dwz_file ();
@@ -17862,6 +17863,8 @@ dwarf_decode_macros (struct dwarf2_cu *cu, unsigned int offset,
case DW_MACRO_GNU_define_indirect:
case DW_MACRO_GNU_undef_indirect:
+ case DW_MACRO_GNU_define_indirect_alt:
+ case DW_MACRO_GNU_undef_indirect_alt:
{
unsigned int bytes_read;
@@ -17872,6 +17875,7 @@ dwarf_decode_macros (struct dwarf2_cu *cu, unsigned int offset,
break;
case DW_MACRO_GNU_transparent_include:
+ case DW_MACRO_GNU_transparent_include_alt:
/* Note that, according to the spec, a transparent include
chain cannot call DW_MACRO_GNU_start_file. So, we can just
skip this opcode. */