aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-mi.exp
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-05-16 13:56:41 +0000
committerPedro Alves <palves@redhat.com>2011-05-16 13:56:41 +0000
commit3b48433dfbab56ba40489df8a778df6c845bc021 (patch)
tree54080e8aca169e97e95cbcb7d9ab8d7837679611 /gdb/testsuite/gdb.python/py-mi.exp
parente3b66208d10d41c18adf808811be92dcf846f9d4 (diff)
downloadgdb-3b48433dfbab56ba40489df8a778df6c845bc021.zip
gdb-3b48433dfbab56ba40489df8a778df6c845bc021.tar.gz
gdb-3b48433dfbab56ba40489df8a778df6c845bc021.tar.bz2
2011-05-16 Pedro Alves <pedro@codesourcery.com>
gdb/testsuite/ * gdb.ada/start.exp: Call untested with the correct test filename. * gdb.arch/i386-bp_permanent.exp: Call untested with the correct test filename. Make the test's binary unique. * gdb.arch/i386-signal.exp: Call untested with the correct test filename. * gdb.arch/i386-size-overlap.exp: Ditto. * gdb.arch/Makefile.in (EXECUTABLES): Update. * gdb.base/gcore-buffer-overflow.exp: Ditto. * gdb.cp/call-c.exp: Ditto. * gdb.mi/mi-reverse.exp: Call untested with the correct test filename. Make the test's binary unique. * gdb.mi/Makefile.in (EXECUTABLES): Update. * gdb.python/py-mi.exp: Ditto. * gdb.python/Makefile.in (EXECUTABLES): Update. * gdb.reverse/i386-precsave.exp: Ditto. * gdb.reverse/i387-env-reverse.exp: Call untested with the correct test filename. * gdb.reverse/i387-stack-reverse.exp: Ditto. * gdb.reverse/sigall-precsave.exp: Ditto. Make the test's binary unique. * gdb.reverse/sigall-reverse.exp: Call untested with the correct test filename. * gdb.reverse/Makefile.in (EXECUTABLES): Update. * gdb.trace/tfile.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-mi.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-mi.exp21
1 files changed, 11 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.python/py-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp
index 37359e9..2e4d12b 100644
--- a/gdb/testsuite/gdb.python/py-mi.exp
+++ b/gdb/testsuite/gdb.python/py-mi.exp
@@ -24,11 +24,12 @@ if [mi_gdb_start] {
continue
}
-set testfile "py-prettyprint"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/py-mi
+set testfile "py-mi"
+set srcfile py-prettyprint.c
+set binfile ${objdir}/${subdir}/${testfile}
+set pyfile py-prettyprint.py
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } {
- untested mi2-var-child.exp
+ untested ${testfile}.exp
return -1
}
@@ -43,11 +44,11 @@ if {[lsearch -exact [mi_get_features] python] < 0} {
mi_runto main
-set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py]
+set remote_python_file [remote_download host ${srcdir}/${subdir}/${pyfile}]
mi_gdb_test "python execfile ('${remote_python_file}')" ""
-mi_continue_to_line [gdb_get_line_number {MI breakpoint here} ${testfile}.c] \
+mi_continue_to_line [gdb_get_line_number {MI breakpoint here} ${srcfile}] \
"step to breakpoint"
mi_create_dynamic_varobj container c \
@@ -221,7 +222,7 @@ mi_varobj_update_dynamic container2 \
} {} {}
mi_continue_to_line \
- [gdb_get_line_number {MI outer breakpoint here} ${testfile}.c] \
+ [gdb_get_line_number {MI outer breakpoint here} ${srcfile}] \
"step to outer breakpoint"
mi_create_dynamic_varobj outer outer \
@@ -244,14 +245,14 @@ mi_gdb_test "-var-update outer" \
"update after updating element of outer"
mi_continue_to_line \
- [gdb_get_line_number {Another MI breakpoint} ${testfile}.c] \
+ [gdb_get_line_number {Another MI breakpoint} ${srcfile}] \
"step to second breakpoint"
mi_varobj_update_with_type_change container int 0 "update after type change"
mi_continue_to_line \
- [gdb_get_line_number {break to inspect struct and union} ${testfile}.c] \
+ [gdb_get_line_number {break to inspect struct and union} ${srcfile}] \
"step to outer breakpoint"
mi_create_dynamic_varobj nscont nstype \
@@ -305,7 +306,7 @@ if {[lsearch -exact [mi_get_features] python] < 0} {
mi_runto main
mi_continue_to_line \
- [gdb_get_line_number {break to inspect struct and union} ${testfile}.c] \
+ [gdb_get_line_number {break to inspect struct and union} ${srcfile}] \
"step to breakpoint"
# Test python/12531. Install visualizer on a cplus_fake_child.