GDB hangs when attaching to process on mips-irix.
authorJoel Brobecker <brobecker@gnat.com>
Sat, 9 Jan 2010 04:40:02 +0000 (04:40 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sat, 9 Jan 2010 04:40:02 +0000 (04:40 +0000)
        * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
        attaching to a process.

gdb/ChangeLog
gdb/solib-irix.c

index b7fb8ce5b6aa6c1c50f45cabec2718f51b10bc16..4767db89166e263ecf2fd5bf4b09fcc3eaf483e9 100644 (file)
@@ -1,3 +1,9 @@
+2010-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB hangs when attaching to process on mips-irix.
+       * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
+       attaching to a process.
+
 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
 
        Use the correct breakpoint instruction on mips-irix.
index 17f7240269cbed2a29866fcebea9992137c8ebcc..ecd5c70b0983cdab8c3388bd730f066f6ae2593c 100644 (file)
@@ -442,6 +442,13 @@ irix_solib_create_inferior_hook (int from_tty)
   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 (inf->attach_flag)
+    return;
+
   if (!enable_break ())
     {
       warning (_("shared library handler failed to enable breakpoint"));
@@ -453,7 +460,6 @@ irix_solib_create_inferior_hook (int from_tty)
      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 ();
This page took 0.025314 seconds and 4 git commands to generate.