diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-04 00:51:04 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-04 00:51:04 +0000 |
commit | 2992cbe0202e3b2fb79ecc49880c27cff3bcba11 (patch) | |
tree | 631814cbc7b856e544875204f18e80a7f3287e4e /gdb/testsuite/gdb.base/watchpoint-solib.exp | |
parent | 37c585d46d93fe2ef1957c86d079a50da00af968 (diff) | |
download | fsf-binutils-gdb-2992cbe0202e3b2fb79ecc49880c27cff3bcba11.zip fsf-binutils-gdb-2992cbe0202e3b2fb79ecc49880c27cff3bcba11.tar.gz fsf-binutils-gdb-2992cbe0202e3b2fb79ecc49880c27cff3bcba11.tar.bz2 |
* gdb.base/value-double-free.exp: Respect gdb,no_hardware_watchpoints.
* gdb.base/watchpoint-solib.exp: Likewise. Update tests to handle
software watchpoints.
* gdb.base/watch_thread_num.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint-solib.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoint-solib.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint-solib.exp b/gdb/testsuite/gdb.base/watchpoint-solib.exp index f883f91..6494b58 100644 --- a/gdb/testsuite/gdb.base/watchpoint-solib.exp +++ b/gdb/testsuite/gdb.base/watchpoint-solib.exp @@ -69,6 +69,11 @@ if [target_info exists gdb_stub] { runto_main +# Disable hardware watchpoints if necessary. +if [target_info exists gdb,no_hardware_watchpoints] { + gdb_test "set can-use-hw-watchpoints 0" "" "" +} + # Test that if we set a watchpoint on a global variable # in a explicitly loaded shared library, and then # re-run the application, gdb does not crash. @@ -79,7 +84,7 @@ gdb_test_multiple "break foo" "set pending breakpoint" { } gdb_test "continue" ".*Breakpoint 2.*foo.*" "continue to foo" -gdb_test "watch g" "Hardware watchpoint 3: g" "set watchpoint on g" +gdb_test "watch g" "atchpoint 3: g" "set watchpoint on g" gdb_test "continue" ".*New value = 1.*" "continue to watchpoint hit" rerun_to_main gdb_test "continue" ".*Breakpoint 2.*foo.*" "continue to foo again" |