This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Fix gdb.dwarf2/implptr-optimized-out.S
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 13 Dec 2012 12:34:41 -0800
- Subject: [patch] Fix gdb.dwarf2/implptr-optimized-out.S
Hi.
The DIE offset parameter to DW_OP_GNU_implicit_pointer is section-relative.
[Only noticeable if you happen to end up with some DIEs being put
in front of the DIE for the testcase.]
I will commit this in a few days if there are no objections.
2012-12-13 Doug Evans <dje@google.com>
* gdb.dwarf2/implptr-optimized-out.S: DIE offset for
DW_OP_GNU_implicit_pointer is section-relative.
Index: gdb.dwarf2/implptr-optimized-out.S
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.S,v
retrieving revision 1.3
diff -u -p -r1.3 implptr-optimized-out.S
--- gdb.dwarf2/implptr-optimized-out.S 15 Mar 2012 09:08:10 -0000 1.3
+++ gdb.dwarf2/implptr-optimized-out.S 13 Dec 2012 20:31:41 -0000
@@ -66,7 +66,7 @@ d:
.byte 2f - 1f /* DW_AT_location: DW_FORM_block1 */
1:
.byte 0xf2 /* DW_OP_GNU_implicit_pointer */
- .4byte .Lvar_out - d /* referenced DIE */
+ .4byte .Lvar_out /* referenced DIE, section-relative! */
.sleb128 0 /* offset */
2:
.4byte .Ltype_structptr - d /* DW_AT_type */