diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e2944f21806..60bbd8a8696 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-10-26 Tom de Vries + + * gdb.dwarf2/dw2-objfile-overlap-inner.S: Specify default base address + for CU. + * gdb.dwarf2/dw2-objfile-overlap-outer.S: Same. + 2020-10-23 Tom de Vries * lib/dwarf.exp (Dwarf::_guess_form): Return "" by default instead of diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S index e895929532a..dd4d5b0eb93 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-inner.S @@ -42,6 +42,7 @@ inner: /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ + .4byte 0 /* DW_AT_low_pc */ .4byte .Ldebug_ranges /* DW_AT_ranges */ .ascii "inner.c\0" /* DW_AT_name */ .ascii "/tmp\0" /* DW_AT_comp_dir */ @@ -77,6 +78,8 @@ inner: .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ + .uleb128 0x11 /* DW_AT_low_pc */ + .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x55 /* DW_AT_ranges */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x3 /* DW_AT_name */ diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S index 9fa578db8ad..75efa014003 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap-outer.S @@ -55,6 +55,7 @@ outer_after: /* CU die */ .uleb128 1 /* Abbrev: DW_TAG_compile_unit */ .4byte .Lline1_begin /* DW_AT_stmt_list */ + .4byte 0 /* DW_AT_low_pc */ .4byte .Ldebug_ranges /* DW_AT_ranges */ .ascii "outer.c\0" /* DW_AT_name */ .ascii "/tmp\0" /* DW_AT_comp_dir */ @@ -101,6 +102,8 @@ outer_after: .byte 1 /* has_children */ .uleb128 0x10 /* DW_AT_stmt_list */ .uleb128 0x6 /* DW_FORM_data4 */ + .uleb128 0x11 /* DW_AT_low_pc */ + .uleb128 0x1 /* DW_FORM_addr */ .uleb128 0x55 /* DW_AT_ranges */ .uleb128 0x6 /* DW_FORM_data4 */ .uleb128 0x3 /* DW_AT_name */