aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/method-ptr.exp
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2014-03-07 11:45:49 +0000
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-03-12 16:22:18 +0100
commite0c0f156b4b0a32293c1a48c296d8035244e3951 (patch)
tree96c88db9833f84a0dd20f1028e84f08cf4b97116 /gdb/testsuite/gdb.dwarf2/method-ptr.exp
parent0e5c45554bc3d274809e688d3bfb8e5438cc3539 (diff)
downloadgdb-e0c0f156b4b0a32293c1a48c296d8035244e3951.zip
gdb-e0c0f156b4b0a32293c1a48c296d8035244e3951.tar.gz
gdb-e0c0f156b4b0a32293c1a48c296d8035244e3951.tar.bz2
Exploit 'prepare_for_testing' etc. for 'Dwarf::assemble'-generated files
Now that prepare_for_testing etc. can cope with absolute path names, this can be exploited for test cases with generated source files. This is just to simplify the code and shouldn't cause any functional change.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/method-ptr.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/method-ptr.exp15
1 files changed, 2 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/method-ptr.exp b/gdb/testsuite/gdb.dwarf2/method-ptr.exp
index 53a3f73..7ab8cbd 100644
--- a/gdb/testsuite/gdb.dwarf2/method-ptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/method-ptr.exp
@@ -77,21 +77,10 @@ Dwarf::assemble $asm_file {
}
}
-if {[gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \
- object {nodebug}] != ""} {
+if { [prepare_for_testing ${testfile}.exp ${testfile} \
+ [list $srcfile $asm_file] {nodebug}] } {
return -1
}
-if {[gdb_compile $asm_file ${binfile}2.o object {nodebug}] != ""} {
- return -1
-}
-
-if {[gdb_compile [list ${binfile}1.o ${binfile}2.o] \
- "${binfile}" executable {c++}] != ""} {
- return -1
-}
-
-clean_restart ${testfile}
-
gdb_test "ptype the_typedef" \
"type = int \\(S::\\*\\)\\(S \\* const, float\\)"