From f8c05d0d192df972af6b1c14aaf9dc8743cfe72e Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 14 Dec 2012 18:26:00 +0000 Subject: [PATCH] * gdb.dwarf2/implptr-optimized-out.S: DIE offset for DW_OP_GNU_implicit_pointer is section-relative. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.dwarf2/implptr-optimized-out.S | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f584518a38..4de393acd8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-12-14 Doug Evans + + * gdb.dwarf2/implptr-optimized-out.S: DIE offset for + DW_OP_GNU_implicit_pointer is section-relative. + 2012-12-14 Tom Tromey * gdb.base/info-proc.exp: Add core file tests. diff --git a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.S b/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.S index 2f268b1cc5..56dfd2af91 100644 --- a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.S +++ b/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.S @@ -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 */ -- 2.34.1