diff options
author | Jeff Law <law@redhat.com> | 1994-12-27 19:36:00 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1994-12-27 19:36:00 +0000 |
commit | f0c9e9e5c4b4cc69aca86876b9ae8ff1c813b4b2 (patch) | |
tree | 800c7c318b436c34c96ceb9c4fa74fc91499e128 /gdb/somsolib.c | |
parent | 93584146c524bda90be0c5021952d3262a45d1d9 (diff) | |
download | gdb-f0c9e9e5c4b4cc69aca86876b9ae8ff1c813b4b2.zip gdb-f0c9e9e5c4b4cc69aca86876b9ae8ff1c813b4b2.tar.gz gdb-f0c9e9e5c4b4cc69aca86876b9ae8ff1c813b4b2.tar.bz2 |
* somsolib.c (som_solib_add): Return without loading any shared
libraries if symfile_objfile is NULL.
(som_solib_create_inferior_hook): Likewise.
Diffstat (limited to 'gdb/somsolib.c')
-rw-r--r-- | gdb/somsolib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c index fc3d2ad..3bdc82f 100644 --- a/gdb/somsolib.c +++ b/gdb/somsolib.c @@ -126,6 +126,9 @@ som_solib_add (arg_string, from_tty, target) We also need to examine __dld_flags to determine if the shared library list is valid and to determine if the libraries have been privately mapped. */ + if (symfile_objfile == NULL) + return; + /* First see if the objfile was dynamically linked. */ shlib_info = bfd_get_section_by_name (symfile_objfile->obfd, "$SHLIB_INFO$"); if (!shlib_info) @@ -454,6 +457,9 @@ som_solib_create_inferior_hook() char shadow_contents[BREAKPOINT_MAX], buf[4]; CORE_ADDR anaddr; + if (symfile_objfile == NULL) + return; + /* First see if the objfile was dynamically linked. */ shlib_info = bfd_get_section_by_name (symfile_objfile->obfd, "$SHLIB_INFO$"); if (!shlib_info) |