From: Edjunior Barbosa Machado Date: Mon, 28 Jul 2014 20:46:02 +0000 (-0300) Subject: 2014-07-28 Edjunior Barbosa Machado X-Git-Tag: gdb-7.8-release~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab830d9eb3307f0131f055f09aa8f16512619b67;p=thirdparty%2Fbinutils-gdb.git 2014-07-28 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 132cf67f45b..a114bfe76e0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-07-28 Edjunior Barbosa Machado + + * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware + breakpoint support correctly. + 2014-07-26 Ludovic Courtès Doug Evans 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; }