type down.
(test_watchpoint_triggering): XFAIL the sw watchpoint scope
test.
* gdb.mi/mi2-watch.exp (test_watchpoint_all): Pass the
watchpoint type down.
(test_watchpoint_triggering): XFAIL the sw watchpoint scope
test.
2007-09-14 Maciej W. Rozycki <macro@mips.com>
- [mti-fix-scope]
+ * gdb.mi/mi-watch.exp (test_watchpoint_all): Pass the watchpoint
+ type down.
+ (test_watchpoint_triggering): XFAIL the sw watchpoint scope
+ test.
+ * gdb.mi/mi2-watch.exp (test_watchpoint_all): Pass the
+ watchpoint type down.
+ (test_watchpoint_triggering): XFAIL the sw watchpoint scope
+ test.
+
+2007-09-14 Maciej W. Rozycki <macro@mips.com>
+
* gdb.mi/mi-watch.exp (test_watchpoint_all): New function.
Move all the tests here and run them twice, once using software
watchpoints and once using hardware watchpoints.
return -1
}
-proc test_watchpoint_creation_and_listing {} {
+proc test_watchpoint_creation_and_listing {type} {
global mi_gdb_prompt
global srcfile
global hex
}
# UNUSED at the time
-proc test_awatch_creation_and_listing {} {
+proc test_awatch_creation_and_listing {type} {
global mi_gdb_prompt
global srcfile
global hex
}
# UNUSED at the time
-proc test_rwatch_creation_and_listing {} {
+proc test_rwatch_creation_and_listing {type} {
global mi_gdb_prompt
global srcfile
global hex
"delete read watchpoint"
}
-proc test_watchpoint_triggering {} {
+proc test_watchpoint_triggering {type} {
global mi_gdb_prompt
global hex fullname_syntax srcfile
timeout {fail "watchpoint trigger (timeout 1)"}
}
+ if { $type == "sw" } {
+ setup_xfail *-*-*
+ }
send_gdb "223-exec-continue\n"
gdb_expect {
-re "223\\^running\r\n$mi_gdb_prompt" {
-re ".*$mi_gdb_prompt$" {fail "wp out of scope (1)"}
timeout {fail "wp out of scope (timeout 1)"}
}
+ clear_xfail *-*-*
}
proc test_watchpoint_all {type} {
mi_gdb_load ${binfile}
mi_runto callee4
- test_watchpoint_creation_and_listing
- #test_rwatch_creation_and_listing
- #test_awatch_creation_and_listing
- test_watchpoint_triggering
+ test_watchpoint_creation_and_listing $type
+ #test_rwatch_creation_and_listing $type
+ #test_awatch_creation_and_listing $type
+ test_watchpoint_triggering $type
set pf_prefix $old_prefix
}
return -1
}
-proc test_watchpoint_creation_and_listing {} {
+proc test_watchpoint_creation_and_listing {type} {
global mi_gdb_prompt
global srcfile
global hex
}
# UNUSED at the time
-proc test_awatch_creation_and_listing {} {
+proc test_awatch_creation_and_listing {type} {
global mi_gdb_prompt
global srcfile
global hex
}
# UNUSED at the time
-proc test_rwatch_creation_and_listing {} {
+proc test_rwatch_creation_and_listing {type} {
global mi_gdb_prompt
global srcfile
global hex
"delete read watchpoint"
}
-proc test_watchpoint_triggering {} {
+proc test_watchpoint_triggering {type} {
global mi_gdb_prompt
global hex
timeout {fail "watchpoint trigger (timeout 1)"}
}
+ if { $type == "sw" } {
+ setup_xfail *-*-*
+ }
send_gdb "223-exec-continue\n"
gdb_expect {
-re "223\\^running\r\n$mi_gdb_prompt" {
-re ".*$mi_gdb_prompt$" {fail "wp out of scope (1)"}
timeout {fail "wp out of scope (timeout 1)"}
}
+ clear_xfail *-*-*
}
proc test_watchpoint_all {type} {
mi_gdb_load ${binfile}
mi_runto callee4
- test_watchpoint_creation_and_listing
- #test_rwatch_creation_and_listing
- #test_awatch_creation_and_listing
- test_watchpoint_triggering
+ test_watchpoint_creation_and_listing $type
+ #test_rwatch_creation_and_listing $type
+ #test_awatch_creation_and_listing $type
+ test_watchpoint_triggering $type
set pf_prefix $old_prefix
}