aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386gnu-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-24 21:21:16 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-24 21:21:16 +0000
commit8d005789186b3d1e0b58b37ead5f260c05256f28 (patch)
tree5c484ebee785c57ca608d4f9b8834b86871f12a6 /gdb/i386gnu-tdep.c
parent59215afbea47b0845a7fe36534c37e7ce02065bf (diff)
downloadgdb-8d005789186b3d1e0b58b37ead5f260c05256f28.zip
gdb-8d005789186b3d1e0b58b37ead5f260c05256f28.tar.gz
gdb-8d005789186b3d1e0b58b37ead5f260c05256f28.tar.bz2
* solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
(solib_svr4_init): Initialize fetch_link_map_offsets to NULL. * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove. * solib-legacy.c: Remove file. * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o. * config/arm/linux.mt (TDEPFILES): Likewise. * config/i386/i386gnu.mh (NATDEPFILES): Likewise. * config/ia64/linux.mt (TDEPFILES): Likewise. * config/m32r/linux.mt (TDEPFILES): Likewise. * config/powerpc/linux.mt (TDEPFILES): Likewise. * config/s390/s390.mt (TDEPFILES): Likewise. * alpha-linux-tdep.c (alpha_linux_init_abi): Call set_solib_svr4_fetch_link_map_offsets. * i386gnu-tdep.c (i386gnu_init_abi): Likewise. * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise. * i386gnu-tdep.c: Include "solib-svr4.h". * Makefile.in: Update dependencies.
Diffstat (limited to 'gdb/i386gnu-tdep.c')
-rw-r--r--gdb/i386gnu-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/i386gnu-tdep.c b/gdb/i386gnu-tdep.c
index 9621961..4a2c75c 100644
--- a/gdb/i386gnu-tdep.c
+++ b/gdb/i386gnu-tdep.c
@@ -18,6 +18,7 @@
#include "defs.h"
#include "osabi.h"
+#include "solib-svr4.h"
#include "i386-tdep.h"
@@ -29,6 +30,9 @@ i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* GNU uses ELF. */
i386_elf_init_abi (info, gdbarch);
+ set_solib_svr4_fetch_link_map_offsets
+ (gdbarch, svr4_ilp32_fetch_link_map_offsets);
+
tdep->jb_pc_offset = 20; /* From <bits/setjmp.h>. */
}