aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-11-06 15:25:05 +0000
committerPedro Alves <palves@redhat.com>2012-11-06 15:25:05 +0000
commitf6592439189cea5986f6bdc476001a2b3db6918a (patch)
tree1bc5d04c821412b138cb9cde4a72a4c4092fe0c3 /gdb/breakpoint.c
parent2d338fa948bca672c696ce23da905bddbbc374b4 (diff)
downloadgdb-f6592439189cea5986f6bdc476001a2b3db6918a.zip
gdb-f6592439189cea5986f6bdc476001a2b3db6918a.tar.gz
gdb-f6592439189cea5986f6bdc476001a2b3db6918a.tar.bz2
gdb/
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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 851dd86..e4ba90d 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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))