gdb's shared-lib mapping code in solib.c has #ifdef dependencies on

DT_MIPS_RLD_MAP being defined on mips targets with shared libs. Since
netbsd's gdb config.h defines HAVE_LINK_H, link.h is expected to
provide it. So #include <machine/elf_machdep.h> to make it so.
This commit is contained in:
jonathan 1998-10-30 05:43:40 +00:00
parent c8546bdb7b
commit fd7cb41920
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: link_elf.h,v 1.2 1998/03/25 04:13:01 mhitch Exp $ */
/* $NetBSD: link_elf.h,v 1.3 1998/10/30 05:43:40 jonathan Exp $ */
/*
* This only exists for GDB.
@ -8,6 +8,8 @@
#include <sys/types.h>
#include <machine/elf_machdep.h>
struct link_map {
caddr_t l_addr; /* Base Address of library */
#ifdef __mips__

View File

@ -1,4 +1,4 @@
/* $NetBSD: link.h,v 1.2 1998/03/25 04:13:01 mhitch Exp $ */
/* $NetBSD: link.h,v 1.3 1998/10/30 05:43:40 jonathan Exp $ */
/*
* This only exists for GDB.
@ -8,6 +8,8 @@
#include <sys/types.h>
#include <machine/elf_machdep.h>
struct link_map {
caddr_t l_addr; /* Base Address of library */
#ifdef __mips__