aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2012-01-04 12:31:49 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2012-01-04 12:31:49 +0000
commit8645ff697e0fb097d2b341d5d50dedddf30f9692 (patch)
tree1deec3c70289ad2a354197ebfce7e2b8423bb7bb /gdb
parent8b282ca52a1ab0ba9081822b1e04875e3c9f14ed (diff)
downloadgdb-8645ff697e0fb097d2b341d5d50dedddf30f9692.zip
gdb-8645ff697e0fb097d2b341d5d50dedddf30f9692.tar.gz
gdb-8645ff697e0fb097d2b341d5d50dedddf30f9692.tar.bz2
* breakpoint.c (all_locations_are_pending): Consider locations
in program spaces executing during startup pending as well.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b051b54..374a445 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * breakpoint.c (all_locations_are_pending): Consider locations
+ in program spaces executing during startup pending as well.
+
2012-01-04 Joel Brobecker <brobecker@adacore.com>
Copyright year update in most files of the GDB Project.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b6445bb..a0beb15 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -11498,7 +11498,8 @@ static int
all_locations_are_pending (struct bp_location *loc)
{
for (; loc; loc = loc->next)
- if (!loc->shlib_disabled)
+ if (!loc->shlib_disabled
+ && !loc->pspace->executing_startup)
return 0;
return 1;
}