aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-sol2-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-04-07 00:04:29 +0000
committerMark Kettenis <kettenis@gnu.org>2004-04-07 00:04:29 +0000
commit70b216c81352409f3bf52fff20f9213378e99109 (patch)
tree392a009bae48e54c87aa935cdedfc61afe45e8bf /gdb/sparc-sol2-tdep.c
parent583518eff386197e05e42248277ec4a9c565a8aa (diff)
downloadgdb-70b216c81352409f3bf52fff20f9213378e99109.zip
gdb-70b216c81352409f3bf52fff20f9213378e99109.tar.gz
gdb-70b216c81352409f3bf52fff20f9213378e99109.tar.bz2
* sparc-sol2-tdep.c: Update copyright year. Include
"solib-svr4.h". (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets. * sparc64-sol2-tdep.c: Include "solib-svr4.h". (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets. * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): ): Update dependencies.
Diffstat (limited to 'gdb/sparc-sol2-tdep.c')
-rw-r--r--gdb/sparc-sol2-tdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/sparc-sol2-tdep.c b/gdb/sparc-sol2-tdep.c
index 0885d47..7944326 100644
--- a/gdb/sparc-sol2-tdep.c
+++ b/gdb/sparc-sol2-tdep.c
@@ -1,6 +1,6 @@
/* Target-dependent code for Solaris SPARC.
- Copyright 2003 Free Software Foundation, Inc.
+ Copyright 2003, 2004 Free Software Foundation, Inc.
This file is part of GDB.
@@ -34,6 +34,7 @@
#include "gdb_string.h"
#include "sparc-tdep.h"
+#include "solib-svr4.h"
/* From <sys/regset.h>. */
const struct sparc_gregset sparc32_sol2_gregset =
@@ -177,6 +178,8 @@ sparc32_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* Solaris has SVR4-style shared libraries... */
set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section);
set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
+ set_solib_svr4_fetch_link_map_offsets
+ (gdbarch, svr4_ilp32_fetch_link_map_offsets);
/* ...which means that we need some special handling when doing
prologue analysis. */