aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-irix.c
diff options
context:
space:
mode:
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"));