Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sourceware.org
Subject: [commit] Fix gdb.mi watchpoint tests for remote
Date: Thu, 06 Sep 2007 23:27:00 -0000	[thread overview]
Message-ID: <20070906232745.GA17695@caradoc.them.org> (raw)

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


             reply	other threads:[~2007-09-06 23:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 23:27 Daniel Jacobowitz [this message]
2007-09-07 12:00 ` Maciej W. Rozycki
2007-09-07 12:21   ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070906232745.GA17695@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox