2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Mon, 14 Jul 2014 23:18:10 +0000 (20:18 -0300)
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Mon, 14 Jul 2014 23:18:10 +0000 (20:18 -0300)
* ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
breakpoint support correctly.

gdb/ChangeLog
gdb/ppc-linux-nat.c

index c0b0b517512599306ee066ac4fefddf73406ab6d..eca73a4fe4ada470ec8e633dc1348197ff7b7100 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2014-07-14  Pedro Alves  <palves@redhat.com>
 
        * utils.c (prompt_for_continue): Call target_terminal_ours.
index fcfd4527cd69f0bbd59c259d564347463e0bcf90..6e8994e9852d839ee28787647684cad4b395b4a0 100644 (file)
@@ -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;
     }
This page took 0.030427 seconds and 4 git commands to generate.