summaryrefslogtreecommitdiff
path: root/gdb/solib-osf.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-06-18 21:30:50 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-06-18 21:30:50 +0000
commitaf6389da9dcd96d50bc7dba1a8b64f55a687c527 (patch)
tree6d732e8916f5189aca5d06bbb868ffcb5ce2977f /gdb/solib-osf.c
parente1e0b4af5530cf10c7fdeb3ed1291cba682597fb (diff)
downloadgdb-af6389da9dcd96d50bc7dba1a8b64f55a687c527.tar.gz
* solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
the target cannot run.
Diffstat (limited to 'gdb/solib-osf.c')
-rw-r--r--gdb/solib-osf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/solib-osf.c b/gdb/solib-osf.c
index bf947332c9f..00f1cd278a5 100644
--- a/gdb/solib-osf.c
+++ b/gdb/solib-osf.c
@@ -321,7 +321,14 @@ osf_solib_create_inferior_hook (void)
/* Now run the target. It will eventually get a SIGTRAP, at
which point all of the libraries will have been mapped in and we
can go groveling around in the rld structures to find
- out what we need to know about them. */
+ out what we need to know about them.
+
+ If debugging from a core file, we cannot resume the execution
+ of the inferior. But this is actually not an issue, because
+ shared libraries have already been mapped anyways, which means
+ we have nothing more to do. */
+ if (!target_can_run (&current_target))
+ return;
clear_proceed_status ();
stop_soon = STOP_QUIETLY;