This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix gdb.mi watchpoint tests for remote
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Thu, 6 Sep 2007 19:27:45 -0400
- Subject: [commit] Fix gdb.mi watchpoint tests for remote
The non-MI watchpoint tests do the same thing: if the board file
requests we not try hardware watchpoints, tell GDB not to. So
I made the MI watchpoint tests do the same, which fixes two
failures when using gdbserver.
Of course this makes the tests run with software watchpoints.
They happen to fail, because we don't realize when we're in
the epilogue early enough (true on both amd64 and powerpc).
Progress, anyway...
Tested x86_64-linux and committed.
--
Daniel Jacobowitz
CodeSourcery
2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.mi/mi2-watch.exp: Set can-use-hw-watchpoints to 0 if required.
* gdb.mi/mi-watch.exp: Likewise.
Index: gdb/testsuite/gdb.mi/mi2-watch.exp
===================================================================
--- gdb/testsuite/gdb.mi/mi2-watch.exp (revision 181154)
+++ gdb/testsuite/gdb.mi/mi2-watch.exp (revision 181155)
@@ -168,6 +168,11 @@ proc test_watchpoint_triggering {} {
}
}
+# Disable hardware watchpoints if necessary.
+if [target_info exists gdb,no_hardware_watchpoints] {
+ mi_gdb_test "-gdb-set can-use-hw-watchpoints 0" "\\^done" ""
+}
+
mi_runto callee4
test_watchpoint_creation_and_listing
#test_rwatch_creation_and_listing
Index: gdb/testsuite/gdb.mi/mi-watch.exp
===================================================================
--- gdb/testsuite/gdb.mi/mi-watch.exp (revision 181154)
+++ gdb/testsuite/gdb.mi/mi-watch.exp (revision 181155)
@@ -168,6 +168,11 @@ proc test_watchpoint_triggering {} {
}
}
+# Disable hardware watchpoints if necessary.
+if [target_info exists gdb,no_hardware_watchpoints] {
+ mi_gdb_test "-gdb-set can-use-hw-watchpoints 0" "\\^done" ""
+}
+
mi_runto callee4
test_watchpoint_creation_and_listing
#test_rwatch_creation_and_listing