diff options
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp index 92ffcae..5de2790 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp @@ -41,11 +41,17 @@ Dwarf::assemble $asm_file { } } -if [prepare_for_testing "failed to prepare" $testfile \ +if [build_executable "failed to prepare" $testfile \ [list $asm_file $srcfile] {nodebug}] { return -1 } +clean_restart + +gdb_test_no_output "maint set dwarf synchronous on" + +gdb_load $binfile + # Verify that GDB notices the null DIE. gdb_assert { [regexp "DWARF Error: Unexpected null DIE" $gdb_file_cmd_msg] } \ "Null DIE error missing" |