gdb/
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 27 Nov 2009 16:12:00 +0000 (16:12 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 27 Nov 2009 16:12:00 +0000 (16:12 +0000)
* s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints
of type bp_hardware_watchpoint.

gdb/testsuite/

* gdb.base/hbreak.exp: Disable for s390*-*-* targets.
* gdb.base/watchpoint-hw-hit-once.exp: Likewise.
* gdb.threads/watchthreads-reorder.exp: Likewise.

gdb/ChangeLog
gdb/s390-nat.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/hbreak.exp
gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp
gdb/testsuite/gdb.threads/watchthreads-reorder.exp

index 64b8603feee9cdd9da4551f048cb3805233dcbc5..a23f2bae69273dfd9d8c8c936f5c75a31495d9c0 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints
+       of type bp_hardware_watchpoint.
+
 2009-11-27  Joel Brobecker  <brobecker@adacore.com>
 
        * ada-lang.c: Apply some corrections to the previous comment addition.
index 6bf83382edf3fcc27703a04ce8cd05cbeaf14fd9..c67777e929a5b474852833c4fb31ddcf962ea036 100644 (file)
@@ -380,7 +380,7 @@ s390_remove_watchpoint (CORE_ADDR addr, int len, int type)
 static int
 s390_can_use_hw_breakpoint (int type, int cnt, int othertype)
 {
-  return 1;
+  return type == bp_hardware_watchpoint;
 }
 
 static int
index fddb912d64af4573648e4572265a8b860a14a012..acfde75a3aae67764d49a7f334ce1d1a4627f996 100644 (file)
@@ -1,3 +1,9 @@
+2009-11-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.base/hbreak.exp: Disable for s390*-*-* targets.
+       * gdb.base/watchpoint-hw-hit-once.exp: Likewise.
+       * gdb.threads/watchthreads-reorder.exp: Likewise.
+
 2009-11-24  Daniel Jacobowitz  <dan@codesourcery.com>
 
        PR gdb/8704
index a172e0fc0794a11bb650425d16a6d4e4bd5f0f06..5bf68d7c72bda5e07d6b2a72672ece292de29f61 100644 (file)
@@ -15,7 +15,7 @@
 
 # Arch not supporting hw watchpoints does not imply no_hardware_watchpoints set.
 if {(![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"]
-     && ![istarget "ia64-*-*"] && ![istarget "s390*-*-*"])
+     && ![istarget "ia64-*-*"])
     || [target_info exists gdb,no_hardware_watchpoints]} then {
     verbose "Skipping hbreak test."
     return
index bd3ad9f56c0f89bc4d490dafb4f79ad0a33559dc..6d9ca719a31cb0e483c1aa4c811f1291ec031ec1 100644 (file)
@@ -15,7 +15,7 @@
 
 # Arch not supporting hw watchpoints does not imply no_hardware_watchpoints set.
 if {(![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"]
-     && ![istarget "ia64-*-*"] && ![istarget "s390*-*-*"])
+     && ![istarget "ia64-*-*"])
     || [target_info exists gdb,no_hardware_watchpoints]} then {
     verbose "Skipping watchpoint-hw-hit-once test."
     return
index bf9b044b27f23d8803d82dff518634ad266f904e..6193356eb1c26d1afd7c049131fe320eb2238cf4 100644 (file)
@@ -26,7 +26,7 @@
 # different/new watchpoint, just based on the watchpoint/debug register number.
 
 if {(![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"]
-     && ![istarget "ia64-*-*"] && ![istarget "s390*-*-*"])
+     && ![istarget "ia64-*-*"])
     || [target_info exists gdb,no_hardware_watchpoints]
     || ![istarget *-*-linux*]} {
     return 0