| Index: gdb/testsuite/gdb.mi/mi2-watch.exp
|
| diff --git a/gdb/testsuite/gdb.mi/mi2-watch.exp b/gdb/testsuite/gdb.mi/mi2-watch.exp
|
| index 3324ba88342370152f71a0a113f7de5f180e54cb..5a56c8e7cc2d7b32ecf52159529d5938d12c8e65 100644
|
| --- a/gdb/testsuite/gdb.mi/mi2-watch.exp
|
| +++ b/gdb/testsuite/gdb.mi/mi2-watch.exp
|
| @@ -32,10 +32,9 @@ if [mi_gdb_start] {
|
| continue
|
| }
|
|
|
| -set testfile "basics"
|
| -set srcfile ${testfile}.c
|
| -set binfile ${objdir}/${subdir}/mi2-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 mi2-watch.exp
|
| return -1
|
| }
|
| @@ -146,15 +145,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}
|
| @@ -164,9 +159,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" \
|
|
|