This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Get rid of solib-legacy.o on FreeBSD/alpha
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Sun, 15 Jan 2006 20:46:14 +0100 (CET)
- Subject: [commit] Get rid of solib-legacy.o on FreeBSD/alpha
Long overdue.
Committed.
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* alphafbsd-tdep.c: Include "solib-svr4.h".
(alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
svr4_lp64_fetch_link_map_offsets.
* Makefile.in (alphafbsd-tdep.o): Update dependencies.
* config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
solib-svr4.o.
* config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
and solib-legacy.o.
* config/alpha/nm-fbsd.h: Don't include "solib.h".
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.775
diff -u -p -r1.775 Makefile.in
--- Makefile.in 15 Jan 2006 13:45:24 -0000 1.775
+++ Makefile.in 15 Jan 2006 19:44:17 -0000
@@ -1673,7 +1673,7 @@ alphabsd-nat.o: alphabsd-nat.c $(defs_h)
alphabsd-tdep.o: alphabsd-tdep.c $(defs_h) $(alpha_tdep_h) \
$(alphabsd_tdep_h)
alphafbsd-tdep.o: alphafbsd-tdep.c $(defs_h) $(value_h) $(osabi_h) \
- $(alpha_tdep_h)
+ $(alpha_tdep_h) $(solib_svr4_h)
alpha-linux-nat.o: alpha-linux-nat.c $(defs_h) $(target_h) $(linux_nat_h)
alpha-linux-tdep.o: alpha-linux-tdep.c $(defs_h) $(frame_h) $(gdb_assert_h) \
$(osabi_h) $(solib_svr4_h) $(alpha_tdep_h)
Index: alphafbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alphafbsd-tdep.c,v
retrieving revision 1.15
diff -u -p -r1.15 alphafbsd-tdep.c
--- alphafbsd-tdep.c 17 Dec 2005 22:33:59 -0000 1.15
+++ alphafbsd-tdep.c 15 Jan 2006 19:44:18 -0000
@@ -1,5 +1,6 @@
-/* Target-dependent code for FreeBSD/Alpha.
- Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+/* Target-dependent code for FreeBSD/alpha.
+
+ Copyright (C) 2001, 2002, 2003, 2006 Free Software Foundation, Inc.
This file is part of GDB.
@@ -23,6 +24,7 @@
#include "osabi.h"
#include "alpha-tdep.h"
+#include "solib-svr4.h"
static int
alphafbsd_use_struct_convention (int gcc_p, struct type *type)
@@ -98,7 +100,12 @@ alphafbsd_init_abi (struct gdbarch_info
/* Hook into the MDEBUG frame unwinder. */
alpha_mdebug_init_abi (info, gdbarch);
- set_gdbarch_deprecated_use_struct_convention (gdbarch, alphafbsd_use_struct_convention);
+ /* FreeBSD/alpha has SVR4-style shared libraries. */
+ set_solib_svr4_fetch_link_map_offsets
+ (gdbarch, svr4_lp64_fetch_link_map_offsets);
+
+ set_gdbarch_deprecated_use_struct_convention
+ (gdbarch, alphafbsd_use_struct_convention);
tdep->dynamic_sigtramp_offset = alphafbsd_sigtramp_offset;
tdep->sigcontext_addr = alphafbsd_sigcontext_addr;
Index: config/alpha/fbsd.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/fbsd.mh,v
retrieving revision 1.7
diff -u -p -r1.7 fbsd.mh
--- config/alpha/fbsd.mh 5 Mar 2005 14:36:10 -0000 1.7
+++ config/alpha/fbsd.mh 15 Jan 2006 19:44:18 -0000
@@ -1,6 +1,5 @@
# Host: FreeBSD/alpha
NATDEPFILES= fork-child.o inf-ptrace.o \
fbsd-nat.o alphabsd-nat.o \
- gcore.o solib.o solib-svr4.o solib-legacy.o \
- corelow.o core-regset.o
+ gcore.o corelow.o core-regset.o
NAT_FILE= nm-fbsd.h
Index: config/alpha/fbsd.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/fbsd.mt,v
retrieving revision 1.6
diff -u -p -r1.6 fbsd.mt
--- config/alpha/fbsd.mt 13 Sep 2004 20:55:38 -0000 1.6
+++ config/alpha/fbsd.mt 15 Jan 2006 19:44:18 -0000
@@ -1,3 +1,4 @@
# Target: FreeBSD/alpha
-TDEPFILES= alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o alphafbsd-tdep.o
+TDEPFILES= alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o alphafbsd-tdep.o \
+ corelow.o solib.o solib-svr4.o
DEPRECATED_TM_FILE= tm-alpha.h
Index: config/alpha/nm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/nm-fbsd.h,v
retrieving revision 1.7
diff -u -p -r1.7 nm-fbsd.h
--- config/alpha/nm-fbsd.h 5 Mar 2005 14:36:10 -0000 1.7
+++ config/alpha/nm-fbsd.h 15 Jan 2006 19:44:18 -0000
@@ -1,6 +1,6 @@
/* Native-dependent definitions for FreeBSD/alpha.
- Copyright 1986, 1987, 1989, 1992, 1996, 2000, 2004, 2005
+ Copyright 1986, 1987, 1989, 1992, 1996, 2000, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GDB.
@@ -25,10 +25,5 @@
/* The Alpha does not step over a breakpoint. */
#define CANNOT_STEP_BREAKPOINT 1
-
-
-/* Shared library support. */
-
-#include "solib.h" /* Support for shared libraries. */
#endif /* nm-fbsd.h */