aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-09-22 14:11:53 +0100
committerPedro Alves <palves@redhat.com>2014-09-25 16:49:43 +0100
commite558d7c1095545832a90e76f72e6db6c98fdee0f (patch)
tree9c3ba4ba23d1deefe632deff5a3a1af07372b38c /gdb
parent7f89fd6519250f85f7b3f6c58beef1fc0ffd9a44 (diff)
downloadgdb-e558d7c1095545832a90e76f72e6db6c98fdee0f.zip
gdb-e558d7c1095545832a90e76f72e6db6c98fdee0f.tar.gz
gdb-e558d7c1095545832a90e76f72e6db6c98fdee0f.tar.bz2
breakpoint.c: debug output when we skip inserting a breakpoint
gdb/ 2014-09-25 Pedro Alves <palves@redhat.com> * breakpoint.c (should_be_inserted): Add debug output.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/breakpoint.c11
2 files changed, 14 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 20a8a8b..a191b62 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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)
(clear_exit_convenience_vars): Point at infrun.h instead of
inferior.h.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 3675b4f..bec7f68 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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;
}