1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Fix (I believe) Bill Paul's core dump when using gdb on shared executables.

This is an addition to rev 1.5.  If lm == NULL, new->lm is uninitialized.
This commit is contained in:
Peter Wemm 1999-11-22 18:04:53 +00:00
parent 29618c3ae2
commit 6e24b2a8e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53598

View File

@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* $FreeBSD$ */
#include "defs.h" #include "defs.h"
@ -1151,7 +1152,7 @@ find_solib (so_list_ptr, maybe_changed)
SVR4, it has no name. For others (Solaris 2.3 for example), it SVR4, it has no name. For others (Solaris 2.3 for example), it
does have a name, so we can no longer use a missing name to does have a name, so we can no longer use a missing name to
decide when to ignore it. */ decide when to ignore it. */
if (new && !IGNORE_FIRST_LINK_MAP_ENTRY (new -> lm)) if (lm && new && !IGNORE_FIRST_LINK_MAP_ENTRY (new -> lm))
{ {
int errcode; int errcode;
char *buffer; char *buffer;