aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-nat.c
diff options
context:
space:
mode:
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2012-05-30 13:37:17 +0000
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2012-05-30 13:37:17 +0000
commitbb08bdbd817cc9ae41f92dd039c363b75340cc61 (patch)
tree7552a0a9afdd66ea3f118e95ea0c648e35d6c35c /gdb/ppc-linux-nat.c
parent6d8bf25d7e9b6fa7cff57137e7c55bcb11b227d8 (diff)
downloadgdb-bb08bdbd817cc9ae41f92dd039c363b75340cc61.zip
gdb-bb08bdbd817cc9ae41f92dd039c363b75340cc61.tar.gz
gdb-bb08bdbd817cc9ae41f92dd039c363b75340cc61.tar.bz2
* ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
accounting of hw watchpoints on ppc.
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r--gdb/ppc-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index 9bd11fd..b9e0c85 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -1461,7 +1461,7 @@ ppc_linux_can_use_hw_breakpoint (int type, int cnt, int ot)
if (type == bp_hardware_watchpoint || type == bp_read_watchpoint
|| type == bp_access_watchpoint || type == bp_watchpoint)
{
- if (cnt > total_hw_wp)
+ if (cnt + ot > total_hw_wp)
return -1;
}
else if (type == bp_hardware_breakpoint)