This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 08/10] dwz -m support
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 19 Jul 2012 23:43:28 +0200
- Subject: Re: [PATCH 08/10] dwz -m support
- References: <871uk83kon.fsf@fleche.redhat.com>
On Wed, 18 Jul 2012 21:59:04 +0200, Tom Tromey wrote:
> This patch does all the actual work of supporting 'dwz -m'.
It does not work for macscp.exp:
+UNSUPPORTED: gdb.base/macscp.exp: Skipping test because debug information does not include macro information.
There is needed at least the patch below but then is still some mismatch
between main and .dwz file.
There is also this regression:
FAIL: gdb.cp/namespace.exp: whatis C::cOtherFileType
FAIL: gdb.cp/namespace.exp: whatis ::C::cOtherFileType
FAIL: gdb.cp/namespace.exp: print AAA::ALPHA
Thanks,
Jan
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 8868540..a8b848e 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -17863,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;
@@ -17873,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. */