aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-type.exp
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-07-22 18:01:43 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-07-22 18:01:43 +0000
commitb3215adc06e4946aca4b6b6c4ebea305753fbe22 (patch)
tree597c6146bb9b7507ccf73a609e49428adb4df960 /gdb/testsuite/gdb.python/py-type.exp
parent182b9acc4b043d7d313f94d217bb6e4f869e5f86 (diff)
downloadfsf-binutils-gdb-b3215adc06e4946aca4b6b6c4ebea305753fbe22.zip
fsf-binutils-gdb-b3215adc06e4946aca4b6b6c4ebea305753fbe22.tar.gz
fsf-binutils-gdb-b3215adc06e4946aca4b6b6c4ebea305753fbe22.tar.bz2
* gdb.python/py-mi.exp: Use different file names for different
versions of the executable under test. * gdb.python/py-prettyprint.exp: Likewise. * gdb.python/py-symbol.exp: Likewise. * gdb.python/py-template.exp: Likewise. * gdb.python/py-type.exp: Likewise. * gdb.python/py-value.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-type.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-type.exp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp
index 01d4477..41d4594 100644
--- a/gdb/testsuite/gdb.python/py-type.exp
+++ b/gdb/testsuite/gdb.python/py-type.exp
@@ -34,20 +34,20 @@ if [get_compiler_info not-used c++] {
proc build_inferior {lang} {
global srcdir subdir srcfile binfile testfile hex
- if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "debug $lang"] != "" } {
+ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-${lang}" executable "debug $lang"] != "" } {
untested "Couldn't compile ${srcfile} in $lang mode"
return -1
}
}
# Restart GDB.
-proc restart_gdb {} {
+proc restart_gdb {lang} {
global srcdir subdir srcfile binfile testfile hex
gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
- gdb_load ${binfile}
+ gdb_load ${binfile}-${lang}
if ![runto_main ] then {
perror "couldn't run to breakpoint"
@@ -162,7 +162,7 @@ proc test_template {} {
# Perform C Tests.
build_inferior "c"
-restart_gdb
+restart_gdb "c"
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
@@ -172,7 +172,7 @@ test_fields "c"
# Perform C++ Tests.
build_inferior "c++"
-restart_gdb
+restart_gdb "c++"
runto_bp "break to inspect struct and array."
test_fields "c++"
test_base_class