From: Edjunior Barbosa Machado Date: Mon, 14 Jul 2014 23:18:10 +0000 (-0300) Subject: 2014-07-14 Edjunior Barbosa Machado X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=572f65559b461133292118cee522b7e437714a07;p=binutils-gdb.git 2014-07-14 Edjunior Barbosa Machado * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware breakpoint support correctly. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c0b0b517512..eca73a4fe4a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-07-14 Edjunior Barbosa Machado + + * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware + breakpoint support correctly. + 2014-07-14 Pedro Alves * utils.c (prompt_for_continue): Call target_terminal_ours. diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index fcfd4527cd6..6e8994e9852 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -1473,6 +1473,11 @@ ppc_linux_can_use_hw_breakpoint (struct target_ops *self, } else if (type == bp_hardware_breakpoint) { + if (total_hw_bp == 0) + { + /* No hardware breakpoint support. */ + return 0; + } if (cnt > total_hw_bp) return -1; }