From 8645ff697e0fb097d2b341d5d50dedddf30f9692 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 4 Jan 2012 12:31:49 +0000 Subject: [PATCH] * breakpoint.c (all_locations_are_pending): Consider locations in program spaces executing during startup pending as well. --- gdb/ChangeLog | 5 +++++ gdb/breakpoint.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b051b54564e..374a4450206 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-01-04 Ulrich Weigand + + * breakpoint.c (all_locations_are_pending): Consider locations + in program spaces executing during startup pending as well. + 2012-01-04 Joel Brobecker Copyright year update in most files of the GDB Project. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index b6445bbc719..a0beb154f76 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; } -- 2.30.2