diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-06-18 21:30:50 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-06-18 21:30:50 +0000 |
commit | 59ddf1e7921981f6635426de22a0027096b4820c (patch) | |
tree | d351250bcb39f3ebdaa6cc8dfe443046365b19ec | |
parent | ea8eedbe57ff0b2b27bff2f8c30bb109e022f2c5 (diff) | |
download | gdb-59ddf1e7921981f6635426de22a0027096b4820c.zip gdb-59ddf1e7921981f6635426de22a0027096b4820c.tar.gz gdb-59ddf1e7921981f6635426de22a0027096b4820c.tar.bz2 |
* solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
the target cannot run.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/solib-osf.c | 9 |
2 files changed, 14 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f648819..58391b8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,4 +1,9 @@ -2008-05-24 Joel Brobecker <brobecker@adacore.com> +2008-06-18 Joel Brobecker <brobecker@adacore.com> + + * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if + the target cannot run. + +2008-06-18 Joel Brobecker <brobecker@adacore.com> * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if we're attaching to a running process. diff --git a/gdb/solib-osf.c b/gdb/solib-osf.c index bf94733..00f1cd2 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 (¤t_target)) + return; clear_proceed_status (); stop_soon = STOP_QUIETLY; |