diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-01-09 04:40:59 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-01-09 04:40:59 +0000 |
commit | 6cfbd29244ca246410ef4d5c812aac487b20909e (patch) | |
tree | 53113939bf0c85bfda7040bb2f60d9e2ee855f7e /gdb/solib-irix.c | |
parent | 20d2b0c01a6843dc954dc59dabd710d18f0ac58d (diff) | |
download | gdb-6cfbd29244ca246410ef4d5c812aac487b20909e.tar.gz |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
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")); |