From f0c9e9e5c4b4cc69aca86876b9ae8ff1c813b4b2 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 27 Dec 1994 19:36:00 +0000 Subject: [PATCH] * somsolib.c (som_solib_add): Return without loading any shared libraries if symfile_objfile is NULL. (som_solib_create_inferior_hook): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/somsolib.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d8b09695648..a532b14168e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Tue Dec 27 12:32:43 1994 Jeff Law (law@snake.cs.utah.edu) + + * somsolib.c (som_solib_add): Return without loading any shared + libraries if symfile_objfile is NULL. + (som_solib_create_inferior_hook): Likewise. + Fri Dec 23 17:03:13 1994 Steve Chamberlain (sac@jonny.cygnus.com) * remote-est.c: New file supports EST-300 CPU32 background diff --git a/gdb/somsolib.c b/gdb/somsolib.c index fc3d2ad15fe..3bdc82f13aa 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) -- 2.30.2