This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Garbage collect SVR4_SHARED_LIBS
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 03 Sep 2004 13:16:37 -0400
- Subject: [commit] Garbage collect SVR4_SHARED_LIBS
Hello,
The svr4 references to this macro must have been deleted long ago (there
are none!). The two remaining references in sh*-tdep are also incorrect
- the code shouldn't be #ifdefed and can be removed.
This removes the sh* references, all definitions, and all documentation.
committed,
Andrew
Index: ChangeLog
2004-09-03 Andrew Cagney <cagney@gnu.org>
* config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
* config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
* config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
* config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
* config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
* config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
* config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
* sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
* sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
Index: doc/ChangeLog
2004-09-03 Andrew Cagney <cagney@gnu.org>
* gdbint.texinfo (Native Debugging): Delete SVR4_SHARED_LIBS.
Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.172
diff -p -u -r1.172 sh-tdep.c
--- sh-tdep.c 2 Aug 2004 19:44:40 -0000 1.172
+++ sh-tdep.c 3 Sep 2004 17:11:50 -0000
@@ -1824,8 +1824,6 @@ sh_print_registers_info (struct gdbarch
}
}
-#ifdef SVR4_SHARED_LIBS
-
/* Fetch (and possibly build) an appropriate link_map_offsets structure
for native i386 linux targets using the struct offsets defined in
link.h (but without actual reference to that file).
@@ -1866,7 +1864,6 @@ sh_linux_svr4_fetch_link_map_offsets (vo
return lmp;
}
-#endif /* SVR4_SHARED_LIBS */
static int
sh_dsp_register_sim_regno (int nr)
Index: sh64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh64-tdep.c,v
retrieving revision 1.31
diff -p -u -r1.31 sh64-tdep.c
--- sh64-tdep.c 3 Aug 2004 02:02:23 -0000 1.31
+++ sh64-tdep.c 3 Sep 2004 17:11:50 -0000
@@ -2736,8 +2736,6 @@ sh64_do_registers_info (int regnum, int
sh_compact_do_registers_info (regnum, fpregs);
}
-#ifdef SVR4_SHARED_LIBS
-
/* Fetch (and possibly build) an appropriate link_map_offsets structure
for native i386 linux targets using the struct offsets defined in
link.h (but without actual reference to that file).
@@ -2778,7 +2776,6 @@ sh_linux_svr4_fetch_link_map_offsets (vo
return lmp;
}
-#endif /* SVR4_SHARED_LIBS */
gdbarch_init_ftype sh64_gdbarch_init;
Index: config/nm-gnu.h
===================================================================
RCS file: /cvs/src/src/gdb/config/nm-gnu.h,v
retrieving revision 1.7
diff -p -u -r1.7 nm-gnu.h
--- config/nm-gnu.h 3 Aug 2004 02:02:24 -0000 1.7
+++ config/nm-gnu.h 3 Sep 2004 17:11:50 -0000
@@ -36,7 +36,6 @@ extern char *gnu_target_pid_to_str (int
#define ATTACH_NO_WAIT
/* Use SVR4 style shared library support */
-#define SVR4_SHARED_LIBS
#include "solib.h"
#endif /* __NM_GNU_H__ */
Index: config/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/nm-linux.h,v
retrieving revision 1.22
diff -p -u -r1.22 nm-linux.h
--- config/nm-linux.h 1 Aug 2004 14:37:01 -0000 1.22
+++ config/nm-linux.h 3 Sep 2004 17:11:50 -0000
@@ -38,7 +38,6 @@ struct target_ops;
style shared libraries. */
#ifdef HAVE_LINK_H
-#define SVR4_SHARED_LIBS
#include "solib.h" /* Support for shared libraries. */
#endif
Index: config/nm-sysv4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/nm-sysv4.h,v
retrieving revision 1.3
diff -p -u -r1.3 nm-sysv4.h
--- config/nm-sysv4.h 8 Jun 2004 19:58:12 -0000 1.3
+++ config/nm-sysv4.h 3 Sep 2004 17:11:50 -0000
@@ -21,7 +21,6 @@
/* Use SVR4 style shared library support */
-#define SVR4_SHARED_LIBS
#include "solib.h"
/* SVR4 has /proc support, so use it instead of ptrace. */
Index: config/tm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/tm-linux.h,v
retrieving revision 1.5
diff -p -u -r1.5 tm-linux.h
--- config/tm-linux.h 5 Jun 2002 19:18:15 -0000 1.5
+++ config/tm-linux.h 3 Sep 2004 17:11:50 -0000
@@ -32,11 +32,4 @@
#include "config/tm-sysv4.h"
-/* We define SVR4_SHARED_LIBS unconditionally, on the assumption that
- link.h is available on all linux platforms. For I386 and SH3/4,
- we hard-code the information rather than use link.h anyway (for
- the benefit of cross-debugging). We may move to doing that for
- other architectures as well. */
-
-#define SVR4_SHARED_LIBS
#include "solib.h" /* Support for shared libraries. */
Index: config/i386/nm-i386sco5.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386sco5.h,v
retrieving revision 1.5
diff -p -u -r1.5 nm-i386sco5.h
--- config/i386/nm-i386sco5.h 8 Jun 2004 19:58:12 -0000 1.5
+++ config/i386/nm-i386sco5.h 3 Sep 2004 17:11:50 -0000
@@ -29,7 +29,6 @@
#include "i386/nm-i386sco.h"
/* ... but it can do a lot of SVR4 type stuff too. */
-#define SVR4_SHARED_LIBS
#include "solib.h" /* Pick up shared library support. */
/* SCO is unlike other SVR4 systems in that it has SVR4 style shared
Index: config/i386/tm-linux64.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-linux64.h,v
retrieving revision 1.1
diff -p -u -r1.1 tm-linux64.h
--- config/i386/tm-linux64.h 25 Feb 2004 20:45:31 -0000 1.1
+++ config/i386/tm-linux64.h 3 Sep 2004 17:11:50 -0000
@@ -24,13 +24,6 @@
#ifndef TM_LINUX64_H
#define TM_LINUX64_H
-/* We define SVR4_SHARED_LIBS unconditionally, on the assumption that
- link.h is available on all linux platforms. For I386 and SH3/4, we
- hard-code the information rather than use link.h anyway (for the
- benefit of cross-debugging). We may move to doing that for other
- architectures as well. */
-
-#define SVR4_SHARED_LIBS
#include "solib.h" /* Support for shared libraries. */
#endif /* tm-linux64.h */
Index: config/m68k/tm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-linux.h,v
retrieving revision 1.16
diff -p -u -r1.16 tm-linux.h
--- config/m68k/tm-linux.h 25 May 2003 18:50:55 -0000 1.16
+++ config/m68k/tm-linux.h 3 Sep 2004 17:11:50 -0000
@@ -20,11 +20,4 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-/* We define SVR4_SHARED_LIBS unconditionally, on the assumption that
- link.h is available on all linux platforms. For I386 and SH3/4,
- we hard-code the information rather than use link.h anyway (for
- the benefit of cross-debugging). We may move to doing that for
- other architectures as well. */
-
-#define SVR4_SHARED_LIBS
#include "solib.h" /* Support for shared libraries. */
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.221
diff -p -u -r1.221 gdbint.texinfo
--- doc/gdbint.texinfo 24 Aug 2004 19:58:24 -0000 1.221
+++ doc/gdbint.texinfo 3 Sep 2004 17:11:51 -0000
@@ -4442,10 +4442,6 @@ the shell execs, and once when the progr
number of traps is something other than 2, then define this macro to
expand into the number expected.
-@item SVR4_SHARED_LIBS
-@findex SVR4_SHARED_LIBS
-Define this to indicate that SVR4-style shared libraries are in use.
-
@item USE_PROC_FS
@findex USE_PROC_FS
This determines whether small routines in @file{*-tdep.c}, which