* 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.
This commit is contained in:
Ulrich Weigand 2009-11-27 16:12:00 +00:00
parent 1b536f04b9
commit b179846202
6 changed files with 15 additions and 4 deletions

View 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.

View 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

View 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

View 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

View 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

View 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