From 11377e68354530c5af902e2161f73a2d0d5af86e Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Sat, 9 Jan 2010 04:40:59 +0000 Subject: [PATCH] Error while loading core file on mips-irix. * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if debugging from a core file. --- gdb/ChangeLog | 6 ++++++ gdb/solib-irix.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4767db89166..1b78da2aaf1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-01-09 Joel Brobecker + + 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 GDB hangs when attaching to process on mips-irix. diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c index ecd5c70b098..b75a0a8b4db 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 (¤t_target)) + return; + if (!enable_break ()) { warning (_("shared library handler failed to enable breakpoint")); -- 2.30.2