summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/fission-reread.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/fission-reread.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/fission-reread.exp19
1 files changed, 8 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/fission-reread.exp b/gdb/testsuite/gdb.dwarf2/fission-reread.exp
index f275308d473..d2d0d4e8691 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-reread.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-reread.exp
@@ -15,27 +15,24 @@
load_lib dwarf.exp
+# We run objcopy locally to split out the .dwo file.
+if [is_remote host] {
+ return 0
+}
+
# This test can only be run on targets which support DWARF-2 and use gas.
if ![dwarf2_support] {
return 0
}
-set basename "fission-reread"
-
standard_testfile .S
-if { [build_executable "$testfile.exp" "$testfile" "$srcfile" {nodebug}] } {
+if [build_executable_from_fission_assembler \
+ "$testfile.exp" "$binfile" "$srcfile" {nodebug}] {
return -1
}
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-
-gdb_test_no_output "set debug-file-directory [file dirname $binfile]" \
- "set debug-file-directory"
-
-gdb_load ${binfile}
+clean_restart ${binfile}
gdb_test "break main" "Breakpoint.*at.*"