* ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix

accounting of hw watchpoints on ppc.
This commit is contained in:
Edjunior Barbosa Machado
2012-05-30 13:37:17 +00:00
parent 6d8bf25d7e
commit bb08bdbd81
2 changed files with 6 additions and 1 deletions

View File

@@ -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)