| Index: gdb/testsuite/gdb.mi/mi-watch.exp
|
| diff --git a/gdb/testsuite/gdb.mi/mi-watch.exp b/gdb/testsuite/gdb.mi/mi-watch.exp
|
| index bce4e88cc8b1206e9da88856a58f6f95247964c0..5ccff514c5d35e9ab53f88c8c120e994d548b4a3 100644
|
| --- a/gdb/testsuite/gdb.mi/mi-watch.exp
|
| +++ b/gdb/testsuite/gdb.mi/mi-watch.exp
|
| @@ -33,10 +33,9 @@ if [mi_gdb_start] {
|
| continue
|
| }
|
|
|
| -set testfile "basics"
|
| -set srcfile ${testfile}.c
|
| -set binfile ${objdir}/${subdir}/mi-watch
|
| -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
|
| +standard_testfile basics.c
|
| +
|
| +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
|
| untested mi-watch.exp
|
| return -1
|
| }
|
| @@ -147,15 +146,11 @@ proc test_watchpoint_triggering {type} {
|
| clear_xfail *-*-*
|
| }
|
|
|
| -proc test_watchpoint_all {type} {
|
| - global pf_prefix
|
| +proc test_watchpoint_all {type} { with_test_prefix "$type" {
|
| upvar srcdir srcdir
|
| upvar subdir subdir
|
| upvar binfile binfile
|
|
|
| - set old_prefix $pf_prefix
|
| - lappend pf_prefix "$type:"
|
| -
|
| mi_delete_breakpoints
|
| mi_gdb_reinitialize_dir $srcdir/$subdir
|
| mi_gdb_load ${binfile}
|
| @@ -165,9 +160,7 @@ proc test_watchpoint_all {type} {
|
| #test_rwatch_creation_and_listing $type
|
| #test_awatch_creation_and_listing $type
|
| test_watchpoint_triggering $type
|
| -
|
| - set pf_prefix $old_prefix
|
| -}
|
| +}}
|
|
|
| # Run the tests twice, once using software watchpoints...
|
| mi_gdb_test "567-gdb-set can-use-hw-watchpoints 0" \
|
|
|