* gdb.base/gdb11531.exp: Respect gdb,no_hardware_watchpoints flag.

* gdb.base/watch-cond.exp: Likewise.
	* gdb.python/py-breakpoint.exp: Likewise.
This commit is contained in:
Ulrich Weigand 2010-06-18 16:51:10 +00:00
parent d8053d4d67
commit e075690553
4 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gdb.base/gdb11531.exp: Respect gdb,no_hardware_watchpoints flag.
* gdb.base/watch-cond.exp: Likewise.
* gdb.python/py-breakpoint.exp: Likewise.
2010-06-18 Pedro Alves <pedro@codesourcery.com>
* gdb.multi/base.exp, gdb.multi/bkpt-multi-exec.exp: Use

View File

@ -30,6 +30,10 @@ if { [prepare_for_testing $testfile.exp $testfile $testfile.c {debug}] } {
return -1;
}
# Disable hardware watchpoints if necessary.
if [target_info exists gdb,no_hardware_watchpoints] {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
if { ![runto main] } then {
fail "run to main"

View File

@ -26,6 +26,11 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
return -1
}
# Disable hardware watchpoints if necessary.
if [target_info exists gdb,no_hardware_watchpoints] {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
if ![runto_main] then {
fail "Can't run to main"
return
@ -41,6 +46,11 @@ gdb_test "continue" \
clean_restart ${testfile}
# Disable hardware watchpoints if necessary.
if [target_info exists gdb,no_hardware_watchpoints] {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
if ![runto_main] then {
fail "Can't run to main"
return
@ -56,6 +66,11 @@ gdb_test "continue" \
clean_restart ${testfile}
# Disable hardware watchpoints if necessary.
if [target_info exists gdb,no_hardware_watchpoints] {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
if ![runto_main] then {
fail "Can't run to main"
return

View File

@ -130,6 +130,11 @@ gdb_test "python print blist\[len(blist)-1\].commands" "print \"Command for brea
# Start with a fresh gdb.
clean_restart ${testfile}
# Disable hardware watchpoints if necessary.
if [target_info exists gdb,no_hardware_watchpoints] {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
if ![runto_main] then {
fail "Cannot run to main."
return 0