Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC] Skip hardware breakpoint tests on OpenBSD
@ 2011-03-09 17:13 Mark Kettenis
  2011-03-10  4:41 ` Ulrich Weigand
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Kettenis @ 2011-03-09 17:13 UTC (permalink / raw)
  To: gdb-patches

The recently introduced skip_hw_breakpoint_tests procedure is a bit
flawed.  It lists hardware platforms that have hardware breakpoints,
but doesn't take into account that the OS running on those platforms
has to make that functionality available to GDB.  This isn't the case
on OpenBSD (and perhaps some other operating systems as well).  The
diff below makes sure the tests are skipped on OpenBSD.  However,
perhaps instead of whitelisting generic hardware platforms, we should
whitelis explicit hardware/OS combinations here?

Thoughts?

2011-03-09  Mark Kettenis  <kettenis@gnu.org>

        * lib/gdb.exp (skip_hw_breakpoint_tests): None of the OpenBSD
        targets actually implement hardware breakpoints, so return 1 for
        *-*-openbsd*.

Index: lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.167
diff -u -p -r1.167 gdb.exp
--- lib/gdb.exp	9 Mar 2011 14:17:05 -0000	1.167
+++ lib/gdb.exp	9 Mar 2011 16:20:41 -0000
@@ -1795,6 +1795,11 @@ proc skip_hw_breakpoint_tests {} {
 	return 1
     }
 
+    # These targets don't support hardware breakpints
+    if { [istarget "*-*-openbsd*"] } {
+	return 1
+    }
+
     # These targets support hardware breakpoints natively
     if { [istarget "i?86-*-*"] 
 	 || [istarget "x86_64-*-*"]


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

end of thread, other threads:[~2011-03-10 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-09 17:13 [RFC] Skip hardware breakpoint tests on OpenBSD Mark Kettenis
2011-03-10  4:41 ` Ulrich Weigand
2011-03-10  7:33   ` Eli Zaretskii
2011-03-10 18:31     ` Ulrich Weigand

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