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.
This commit is contained in:
Pedro Alves 2014-09-22 14:11:53 +01:00
parent 7f89fd6519
commit e558d7c109
2 changed files with 14 additions and 1 deletions

View 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)

View 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;
}