aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-05-03 23:18:23 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-05-03 23:18:23 +0000
commit0b02b92d053edf632721d10151887114a256ca5e (patch)
tree355e2daa1ba556b1fd80ab4ffe9f78098159a023 /gdb/infrun.c
parentd705c43c5aa1551e91d5dfbd73ea8d4ba0f0758d (diff)
downloadgdb-0b02b92d053edf632721d10151887114a256ca5e.zip
gdb-0b02b92d053edf632721d10151887114a256ca5e.tar.gz
gdb-0b02b92d053edf632721d10151887114a256ca5e.tar.bz2
* infrun.c (handle_inferior_event): Do not insert breakpoints at
TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index a3e7695..3944c0f 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);