From 6b4646ced5a71ad6ea7297c97d2df08b8357ab9b Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 20 Sep 2013 22:43:28 +0000 Subject: * lib/dwarf.exp (build_executable_from_fission_assembler): New proc. * gdb.dwarf2/fission-base.S: Update. Split out .dwo into separate file. * gdb.dwarf2/fission-loclists.S: Ditto. * gdb.dwarf2/fission-reread.S: Ditto. * gdb.dwarf2/fission-base.exp: Skip of remote host. Compile with build_executable_from_fission_assembler. * gdb.dwarf2/fission-loclists.exp: Ditto. * gdb.dwarf2/fission-reread.exp: Ditto. --- gdb/testsuite/gdb.dwarf2/fission-base.exp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'gdb/testsuite/gdb.dwarf2/fission-base.exp') diff --git a/gdb/testsuite/gdb.dwarf2/fission-base.exp b/gdb/testsuite/gdb.dwarf2/fission-base.exp index 58448f8..bb4eb77 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-base.exp +++ b/gdb/testsuite/gdb.dwarf2/fission-base.exp @@ -15,6 +15,11 @@ 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 @@ -25,22 +30,14 @@ if {![istarget x86_64-*] || ![is_lp64_target]} { return 0 } -set basename "fission-base" - 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} if ![runto_main] { return -1 -- cgit v1.1