Remove the attach_flag global, and make it per-inferior.
[deliverable/binutils-gdb.git] / gdb / solib-osf.c
index 031d59882af5907d702c496b7258fac18c4ff820..efb8cf81992979780146b2752906a9dfb3074589 100644 (file)
@@ -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 (&current_target))
     return;
 
-  inf = current_inferior ();
   tp = inferior_thread ();
   clear_proceed_status ();
   inf->stop_soon = STOP_QUIETLY;
This page took 0.024707 seconds and 4 git commands to generate.