Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit] Fix gdb.mi watchpoint tests for remote
@ 2007-09-06 23:27 Daniel Jacobowitz
  2007-09-07 12:00 ` Maciej W. Rozycki
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-09-06 23:27 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-07 12:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-06 23:27 [commit] Fix gdb.mi watchpoint tests for remote Daniel Jacobowitz
2007-09-07 12:00 ` Maciej W. Rozycki
2007-09-07 12:21   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox