diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0c33d0e05f6..2be762a3d48 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2013-11-04 Tom Tromey + + * gdb.dwarf2/fission-base.S: Remove "gdb.dwarf/". + * gdb.dwarf2/fission-base.exp: Set debug-file-directory + before loading binfile. + * gdb.dwarf2/fission-loclists.S: Remove "gdb.dwarf/". + * gdb.dwarf2/fission-loclists.exp: Set debug-file-directory + before loading binfile. + 2013-11-04 Tom Tromey * gdb.base/foll-exec.c (main): Use BASEDIR. diff --git a/gdb/testsuite/gdb.dwarf2/fission-base.S b/gdb/testsuite/gdb.dwarf2/fission-base.S index ccd6b236a08..e670423a92b 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-base.S +++ b/gdb/testsuite/gdb.dwarf2/fission-base.S @@ -85,7 +85,7 @@ main: .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) .ascii "GNU C 4.6.x-fission\0" # DW_AT_producer .byte 0x1 # DW_AT_language - .ascii "gdb.dwarf2/fission-base.c\0" # DW_AT_name + .ascii "fission-base.c\0" # DW_AT_name .ascii "/tmp/src/gdb/testsuite\0" # DW_AT_comp_dir .byte 1 # DW_AT_GNU_dwo_id .byte 2 @@ -143,7 +143,7 @@ main: .8byte .Letext0-.Ltext0 # DW_AT_high_pc .4byte .Ldebug_line0 # DW_AT_stmt_list .ascii "/tmp/src/gdb/testsuite\0" # DW_AT_comp_dir - .ascii "gdb.dwarf2/fission-base.dwo\0" # DW_AT_GNU_dwo_name + .ascii "fission-base.dwo\0" # DW_AT_GNU_dwo_name .4byte .Ldebug_pubnames0 # DW_AT_GNU_pubnames .4byte .Ldebug_pubtypes0 # DW_AT_GNU_pubtypes .4byte .Ldebug_addr0_begin # DW_AT_GNU_addr_base diff --git a/gdb/testsuite/gdb.dwarf2/fission-base.exp b/gdb/testsuite/gdb.dwarf2/fission-base.exp index bb4eb7716d7..81ca5854e26 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-base.exp +++ b/gdb/testsuite/gdb.dwarf2/fission-base.exp @@ -37,7 +37,14 @@ if [build_executable_from_fission_assembler \ return -1 } -clean_restart ${binfile} +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +# Make sure we can find the .dwo file, regardless of whether we're +# running in parallel mode. +gdb_test_no_output "set debug-file-directory [file dirname $binfile]" \ + "set debug-file-directory" +gdb_load $binfile if ![runto_main] { return -1 diff --git a/gdb/testsuite/gdb.dwarf2/fission-loclists.S b/gdb/testsuite/gdb.dwarf2/fission-loclists.S index 876c6105f44..ee34a299a63 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-loclists.S +++ b/gdb/testsuite/gdb.dwarf2/fission-loclists.S @@ -240,7 +240,7 @@ main: .byte 0x5 .4byte .Ldebug_ranges0 # DW_AT_GNU_ranges_base .ascii "/tmp/src/gdb/testsuite\0" # DW_AT_comp_dir - .ascii "gdb.dwarf2/fission-loclists.dwo\0" # DW_AT_GNU_dwo_name + .ascii "fission-loclists.dwo\0" # DW_AT_GNU_dwo_name .4byte .Ldebug_pubnames0 # DW_AT_GNU_pubnames .4byte .Ldebug_pubtypes0 # DW_AT_GNU_pubtypes .4byte .Ldebug_addr0 # DW_AT_GNU_addr_base diff --git a/gdb/testsuite/gdb.dwarf2/fission-loclists.exp b/gdb/testsuite/gdb.dwarf2/fission-loclists.exp index 29ccd1bb9be..dccd6c2b12b 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-loclists.exp +++ b/gdb/testsuite/gdb.dwarf2/fission-loclists.exp @@ -37,7 +37,14 @@ if [build_executable_from_fission_assembler \ return -1 } -clean_restart ${binfile} +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +# Make sure we can find the .dwo file, regardless of whether we're +# running in parallel mode. +gdb_test_no_output "set debug-file-directory [file dirname $binfile]" \ + "set debug-file-directory" +gdb_load $binfile if ![runto_main] { return -1