aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-nat.c
diff options
context:
space:
mode:
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2014-07-14 20:18:10 -0300
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2014-07-14 20:18:10 -0300
commit572f65559b461133292118cee522b7e437714a07 (patch)
tree0a8644fc35f192a6d8bfeb260e71be9cb04ebf18 /gdb/ppc-linux-nat.c
parentcc1c52ad653224e0804fa03e3af9affaa7062dc8 (diff)
downloadgdb-572f65559b461133292118cee522b7e437714a07.zip
gdb-572f65559b461133292118cee522b7e437714a07.tar.gz
gdb-572f65559b461133292118cee522b7e437714a07.tar.bz2
2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
* ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware breakpoint support correctly.
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r--gdb/ppc-linux-nat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index fcfd452..6e8994e 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;
}