breakpoint.c: debug output when we skip inserting a breakpoint
authorPedro Alves <palves@redhat.com>
Mon, 22 Sep 2014 13:11:53 +0000 (14:11 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 25 Sep 2014 15:49:43 +0000 (16:49 +0100)
gdb/
2014-09-25  Pedro Alves  <palves@redhat.com>

* breakpoint.c (should_be_inserted): Add debug output.

gdb/ChangeLog
gdb/breakpoint.c

index 20a8a8b75375543345e4c8f112e4189470ec406e..a191b6232d7130777c153c7c7220ececde9d179b 100644 (file)
@@ -1,3 +1,7 @@
+2014-09-25  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (should_be_inserted): Add debug output.
+
 2014-09-25  Pedro Alves  <palves@redhat.com>
 
        * infrun.c (stepping_past_instruction_at)
index 3675b4fd689df69a90c54738fb435d9735367468..bec7f68f06eb1ab917b12a0bb260fa81173b5f6d 100644 (file)
@@ -2201,7 +2201,16 @@ should_be_inserted (struct bp_location *bl)
        || bl->loc_type == bp_loc_hardware_breakpoint)
       && stepping_past_instruction_at (bl->pspace->aspace,
                                       bl->address))
-    return 0;
+    {
+      if (debug_infrun)
+       {
+         fprintf_unfiltered (gdb_stdlog,
+                             "infrun: skipping breakpoint: "
+                             "stepping past insn at: %s\n",
+                             paddress (bl->gdbarch, bl->address));
+       }
+      return 0;
+    }
 
   return 1;
 }