diff options
Diffstat (limited to 'gdb/solib-osf.c')
-rw-r--r-- | gdb/solib-osf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/solib-osf.c b/gdb/solib-osf.c index 031d598..efb8cf8 100644 --- a/gdb/solib-osf.c +++ b/gdb/solib-osf.c @@ -310,9 +310,11 @@ osf_solib_create_inferior_hook (void) struct inferior *inf; struct thread_info *tp; + inf = current_inferior (); + /* If we are attaching to the inferior, the shared libraries have already been mapped, so nothing more to do. */ - if (attach_flag) + if (inf->attach_flag) return; /* Nothing to do for statically bound executables. */ @@ -334,7 +336,6 @@ osf_solib_create_inferior_hook (void) if (!target_can_run (¤t_target)) return; - inf = current_inferior (); tp = inferior_thread (); clear_proceed_status (); inf->stop_soon = STOP_QUIETLY; |