Error while loading core file on mips-irix.
authorJoel Brobecker <brobecker@gnat.com>
Sat, 9 Jan 2010 04:40:59 +0000 (04:40 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sat, 9 Jan 2010 04:40:59 +0000 (04:40 +0000)
        * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
        if debugging from a core file.

gdb/ChangeLog
gdb/solib-irix.c

index 4767db8..1b78da2 100644 (file)
@@ -1,5 +1,11 @@
 2010-01-09  Joel Brobecker  <brobecker@adacore.com>
 
+       Error while loading core file on mips-irix.
+       * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
+       if debugging from a core file.
+
+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.
index ecd5c70..b75a0a8 100644 (file)
@@ -449,6 +449,11 @@ irix_solib_create_inferior_hook (int from_tty)
   if (inf->attach_flag)
     return;
 
+  /* Likewise when debugging from a core file, the shared libraries
+     have already been mapped, so nothing more to do.  */
+  if (!target_can_run (&current_target))
+    return;
+
   if (!enable_break ())
     {
       warning (_("shared library handler failed to enable breakpoint"));