diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp index e8d7c0ff280..d4734f27bff 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp @@ -29,15 +29,17 @@ lassign [function_range func_loopfb \ set flags \ [list \ - "debug" \ "additional_flags=\"-DFUNC_NOFB_START=$func_nofb_start\"" \ "additional_flags=\"-DFUNC_NOFB_END=$func_nofb_start + $func_nofb_len\"" \ "additional_flags=\"-DFUNC_LOOPFB_START=$func_loopfb_start\"" \ "additional_flags=\"-DFUNC_LOOPFB_END=$func_loopfb_start + $func_loopfb_len\""] set executable ${testfile} -if {[prepare_for_testing "failed to prepare" $testfile \ - [list $srcfile3 $srcfile $srcfile2] $flags] == -1} { +if { [prepare_for_testing_full "failed to prepare" \ + [list $testfile {} \ + $srcfile [concat $flags {nodebug}] \ + $srcfile2 {nodebug} \ + $srcfile3 {debug}]] == -1 } { return -1 }