aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-07-12 15:15:07 +0000
committerTom Tromey <tromey@redhat.com>2012-07-12 15:15:07 +0000
commit76027ef599f664d2c45574304d304abc962145c2 (patch)
treed5af4479ebec0ee9e6f3fe27b59433b5c3f191d1 /gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
parent85b4440aee65df8d448a532fe925999228004afc (diff)
downloadgdb-76027ef599f664d2c45574304d304abc962145c2.zip
gdb-76027ef599f664d2c45574304d304abc962145c2.tar.gz
gdb-76027ef599f664d2c45574304d304abc962145c2.tar.bz2
* gdb.dwarf2/dup-psym.exp: Use prepare_for_testing_full.
* gdb.dwarf2/dw2-anonymous-func.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-basic.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-compressed.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-const.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-cu-size.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-intercu.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-intermix.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-linkage-name-trust.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-producer.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-ref-missing-frame.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-restore.exp: Use prepare_for_testing_full. * gdb.dwarf2/dw2-strp.exp: Use prepare_for_testing_full. * gdb.dwarf2/mac-fileno.exp: Use prepare_for_testing_full.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp11
1 files changed, 5 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
index 9eae088..7857449 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
@@ -25,16 +25,15 @@ if {![dwarf2_support]} {
return 0
}
-standard_testfile
+standard_testfile .S
set executable ${testfile}
-if { [gdb_compile ${srcdir}/${subdir}/${testfile}-main.cc "${objdir}/${subdir}/${testfile}-main.o" object {c++ debug}] != ""
- || [gdb_compile "${srcdir}/${subdir}/${testfile}.S" "${objdir}/${subdir}/${testfile}.o" object {}] != ""
- || [gdb_compile "${objdir}/${subdir}/${testfile}-main.o ${objdir}/${subdir}/${testfile}.o" "${binfile}" executable {c++}] != "" } {
+
+if {[prepare_for_testing_full $testfile.exp \
+ [list $testfile c++ $testfile-main.cc {c++ debug} \
+ $srcfile {}]]} {
return -1
}
-clean_restart $executable
-
if ![runto_main] then {
return -1
}