Hi.  Hardware watchpoints are not available on sparc64 systems running
GNU/Linux.  If this fact is not reflected in the board description then
several tests in gdb fail.

Tested on sparc64-unknown-linux-gnu (T4).

>From 8f3dbbdb61dd71d8bdb432f9c005a1cfdbc08935 Mon Sep 17 00:00:00 2001
From: Jose E. Marchesi <jose.march...@oracle.com>
Date: Fri, 4 Oct 2013 07:46:48 -0700
Subject: [PATCH] 2013-10-04  Jose E. Marchesi  <jose.march...@oracle.com>

        * baseboards/unix.exp: Add gdb settings to not use hardware
        watchpoints in sparc64 running GNU/Linux.
---
 ChangeLog           |    5 +++++
 baseboards/unix.exp |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2d23388..b69a13b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-04  Jose E. Marchesi  <jose.march...@oracle.com>
+
+       * baseboards/unix.exp: Add gdb settings to not use hardware
+       watchpoints in sparc64 running GNU/Linux.
+
 2013-06-17  Bernhard Reutner-Fischer  <al...@gcc.gnu.org>
 
        * runtest.exp (libdirs): New global variable.
diff --git a/baseboards/unix.exp b/baseboards/unix.exp
index cf64a9e..bbb4adf 100644
--- a/baseboards/unix.exp
+++ b/baseboards/unix.exp
@@ -35,3 +35,8 @@ if { [istarget "*-*-cygwin*"] } {
 if { [istarget "alpha*-*"] } {
     set_board_info ieee_multilib_flags "-mieee"
 }
+
+# Hardware breakpoints are not supported in sparc64 on GNU/Linux
+if { [istarget "sparc64-*-linux-gnu"] } {
+    set_board_info gdb,no_hardware_watchpoints 1
+}
-- 
1.7.1




_______________________________________________
DejaGnu mailing list
DejaGnu@gnu.org
https://lists.gnu.org/mailman/listinfo/dejagnu

Reply via email to