aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-irix.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-01-09 04:40:59 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-01-09 04:40:59 +0000
commit11377e68354530c5af902e2161f73a2d0d5af86e (patch)
treef95e723dc0c477e43152c9be4a96097e51f6914b /gdb/solib-irix.c
parentb2391021b65311d8253c924fc21183dd7c7d0a3c (diff)
downloadgdb-11377e68354530c5af902e2161f73a2d0d5af86e.zip
gdb-11377e68354530c5af902e2161f73a2d0d5af86e.tar.gz
gdb-11377e68354530c5af902e2161f73a2d0d5af86e.tar.bz2
Error while loading core file on mips-irix.
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing if debugging from a core file.
Diffstat (limited to 'gdb/solib-irix.c')
-rw-r--r--gdb/solib-irix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c
index ecd5c70..b75a0a8 100644
--- a/gdb/solib-irix.c
+++ b/gdb/solib-irix.c
@@ -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"));