From: uweigand Date: Sat, 3 May 2008 23:18:23 +0000 (+0000) Subject: * infrun.c (handle_inferior_event): Do not insert breakpoints at X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=da99e7f5015a27def3664fbdd372c3a9bff983b9;p=pf3gnuchains%2Fpf3gnuchains3x.git * infrun.c (handle_inferior_event): Do not insert breakpoints at TARGET_WAITKIND_LOADED events during startup (i.e. in the shell). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3e794a3f79..6d67b1db59 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-05-03 Ulrich Weigand + + * infrun.c (handle_inferior_event): Do not insert breakpoints at + TARGET_WAITKIND_LOADED events during startup (i.e. in the shell). + 2008-05-03 Pedro Alves * parse.c (parse_exp_in_context): Don't override diff --git a/gdb/infrun.c b/gdb/infrun.c index a3e7695f50..3944c0f08b 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1817,7 +1817,8 @@ handle_inferior_event (struct execution_control_state *ecs) { /* Loading of shared libraries might have changed breakpoint addresses. Make sure new breakpoints are inserted. */ - if (!breakpoints_always_inserted_mode ()) + if (stop_soon == NO_STOP_QUIETLY + && !breakpoints_always_inserted_mode ()) insert_breakpoints (); resume (0, TARGET_SIGNAL_0); prepare_to_wait (ecs);