diff options
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp b/gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp index 82adb79..cbe456f 100644 --- a/gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp +++ b/gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp @@ -35,9 +35,9 @@ set no_debug_re \ set no_debug_re [join $no_debug_re] set readnow_p [readnow] -set index_file ${testfile}.gdb-index +set index_dir [host_standard_output_file ""] # The bug was that gdb would crash here. -set cmd "save gdb-index [file dirname ${index_file}]" +set cmd "save gdb-index $index_dir" gdb_test_multiple $cmd "try to save gdb index" { -re -wrap $have_index_re { if { $have_index != "" || $readnow_p } { |