diff --git a/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp b/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp index 1f70e6a34bd..1c366521808 100644 --- a/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp +++ b/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp @@ -144,7 +144,7 @@ Dwarf::assemble ${asm_file} { get_func_info foo $flags get_func_info bar $flags - cu {} { + cu { label cu_label } { DW_TAG_compile_unit { {DW_AT_language @DW_LANG_C_plus_plus} {name ${::srcfile}} @@ -294,6 +294,11 @@ Dwarf::assemble ${asm_file} { {DW_LNE_end_sequence} } } + + aranges {} cu_label { + arange {} $foo_start $foo_end + arange {} $bar_start $bar_end + } } # Compile the shared object again, but this time include / use the