diff options
Diffstat (limited to 'gdb/solib-sunos.c')
-rw-r--r-- | gdb/solib-sunos.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c index c83b057..e18d9a5 100644 --- a/gdb/solib-sunos.c +++ b/gdb/solib-sunos.c @@ -739,6 +739,7 @@ static void sunos_solib_create_inferior_hook (void) { struct thread_info *tp; + struct inferior *inf; if ((debug_base = locate_base ()) == 0) { @@ -761,9 +762,12 @@ sunos_solib_create_inferior_hook (void) can go groveling around in the dynamic linker structures to find out what we need to know about them. */ + inf = current_inferior (); tp = inferior_thread (); + clear_proceed_status (); - stop_soon = STOP_QUIETLY; + + inf->stop_soon = STOP_QUIETLY; tp->stop_signal = TARGET_SIGNAL_0; do { @@ -771,7 +775,7 @@ sunos_solib_create_inferior_hook (void) wait_for_inferior (0); } while (tp->stop_signal != TARGET_SIGNAL_TRAP); - stop_soon = NO_STOP_QUIETLY; + inf->stop_soon = NO_STOP_QUIETLY; /* We are now either at the "mapping complete" breakpoint (or somewhere else, a condition we aren't prepared to deal with anyway), so adjust |