2012-11-06  Pedro Alves  <palves@redhat.com>

	PR gdb/14810

	* breakpoint.c (bpstat_stop_status): Skip disabled locations.

gdb/testsuite/
2012-11-06  Pedro Alves  <palves@redhat.com>

	PR gdb/14810

	* gdb.base/disabled-location.c: New file.
	* gdb.base/disabled-location.exp: New file.
This commit is contained in:
Pedro Alves
2012-11-06 15:25:05 +00:00
parent 2d338fa948
commit f659243918
5 changed files with 84 additions and 1 deletions

View File

@ -5175,7 +5175,7 @@ bpstat_stop_status (struct address_space *aspace,
if (b->type == bp_hardware_watchpoint && bl != b->loc)
break;
if (bl->shlib_disabled)
if (!bl->enabled || bl->shlib_disabled)
continue;
if (!bpstat_check_location (bl, aspace, bp_addr, ws))