diff options
author | Doug Evans <dje@google.com> | 2013-09-20 22:43:28 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-09-20 22:43:28 +0000 |
commit | 6b4646ced5a71ad6ea7297c97d2df08b8357ab9b (patch) | |
tree | 31557ca7c90154df33f10152c1cccdd05d81c885 /gdb/testsuite/gdb.dwarf2/fission-base.exp | |
parent | 4fa7d390970c4e558fc42b8d5ff4d42b60240db4 (diff) | |
download | gdb-6b4646ced5a71ad6ea7297c97d2df08b8357ab9b.zip gdb-6b4646ced5a71ad6ea7297c97d2df08b8357ab9b.tar.gz gdb-6b4646ced5a71ad6ea7297c97d2df08b8357ab9b.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/fission-base.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/fission-base.exp | 19 |
1 files changed, 8 insertions, 11 deletions
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 |