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 | 11377e68354530c5af902e2161f73a2d0d5af86e (patch) | |
tree | f95e723dc0c477e43152c9be4a96097e51f6914b /gdb/solib-irix.c | |
parent | b2391021b65311d8253c924fc21183dd7c7d0a3c (diff) | |
download | gdb-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.c | 5 |
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 (¤t_target)) + return; + if (!enable_break ()) { warning (_("shared library handler failed to enable breakpoint")); |