From: Edjunior Barbosa Machado Date: Wed, 30 May 2012 13:37:17 +0000 (+0000) Subject: * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb08bdbd817cc9ae41f92dd039c363b75340cc61;p=binutils-gdb.git * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix accounting of hw watchpoints on ppc. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c2f01b9462e..14b0b7aa875 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-05-30 Edjunior Machado + + * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix + accounting of hw watchpoints on ppc. + 2012-05-30 Thiago Jung Bauermann * source.c (openp): Expand tilde in path entries. diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 9bd11fd8bbb..b9e0c855963 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)