This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Get rid if NO_SYS_FILE and KERNEL_U_ADDR_BSD
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 6 Aug 2004 22:48:45 +0200 (CEST)
- Subject: [PATCH] Get rid if NO_SYS_FILE and KERNEL_U_ADDR_BSD
Nothing set these macros anymore.
Committed as obvious.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@chello.nl>
* infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
!NO_SYS_FILE.
[KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
[KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
(_initialize_kernel_u_addr): Remove prototype and function.
* infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
!NO_SYS_FILE.
* xcoffread.c: Likewise.
Index: doc/ChangeLog
from Mark Kettenis <kettenis@chello.nl>
* gdbint.texinfo (Host Definition): Delete description of
NO_SYS_FILE.
(Native Debugging): Delete description of KERNEL_U_ADDR_BSD and
PTRACE_FP_BUG.
Index: infptrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infptrace.c,v
retrieving revision 1.35
diff -u -p -r1.35 infptrace.c
--- infptrace.c 3 Aug 2004 00:57:26 -0000 1.35
+++ infptrace.c 6 Aug 2004 20:44:10 -0000
@@ -77,7 +77,7 @@
#endif
#include "gdbcore.h"
-#ifndef NO_SYS_FILE
+#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#if 0
@@ -89,9 +89,6 @@
#if !defined (FETCH_INFERIOR_REGISTERS)
#include <sys/user.h> /* Probably need to poke the user structure */
-#if defined (KERNEL_U_ADDR_BSD)
-#include <a.out.h> /* For struct nlist */
-#endif /* KERNEL_U_ADDR_BSD. */
#endif /* !FETCH_INFERIOR_REGISTERS */
#if !defined (CHILD_XFER_MEMORY)
@@ -103,7 +100,6 @@ static void fetch_register (int);
static void store_register (int);
#endif
-void _initialize_kernel_u_addr (void);
void _initialize_infptrace (void);
@@ -322,29 +318,6 @@ detach (int signal)
#define PTRACE_XFER_TYPE int
#endif
-/* KERNEL_U_ADDR is the amount to subtract from u.u_ar0
- to get the offset in the core file of the register values. */
-#if defined (KERNEL_U_ADDR_BSD) && !defined (FETCH_INFERIOR_REGISTERS)
-/* Get kernel_u_addr using BSD-style nlist(). */
-CORE_ADDR kernel_u_addr;
-#endif /* KERNEL_U_ADDR_BSD. */
-
-void
-_initialize_kernel_u_addr (void)
-{
-#if defined (KERNEL_U_ADDR_BSD) && !defined (FETCH_INFERIOR_REGISTERS)
- struct nlist names[2];
-
- names[0].n_un.n_name = "_u";
- names[1].n_un.n_name = NULL;
- if (nlist ("/vmunix", names) == 0)
- kernel_u_addr = names[0].n_value;
- else
- internal_error (__FILE__, __LINE__,
- "Unable to get kernel u area address.");
-#endif /* KERNEL_U_ADDR_BSD. */
-}
-
#if !defined (FETCH_INFERIOR_REGISTERS)
#if !defined (offsetof)
Index: infttrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infttrace.c,v
retrieving revision 1.32
diff -u -p -r1.32 infttrace.c
--- infttrace.c 8 Jun 2004 19:58:11 -0000 1.32
+++ infttrace.c 6 Aug 2004 20:44:13 -0000
@@ -119,7 +119,7 @@
#endif
#include "gdbcore.h"
-#ifndef NO_SYS_FILE
+#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
Index: xcoffread.c
===================================================================
RCS file: /cvs/src/src/gdb/xcoffread.c,v
retrieving revision 1.40
diff -u -p -r1.40 xcoffread.c
--- xcoffread.c 14 Feb 2004 15:46:33 -0000 1.40
+++ xcoffread.c 6 Aug 2004 20:44:15 -0000
@@ -31,7 +31,7 @@
#include "gdb_string.h"
#include <sys/param.h>
-#ifndef NO_SYS_FILE
+#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#include "gdb_stat.h"
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.216
diff -u -p -r1.216 gdbint.texinfo
--- doc/gdbint.texinfo 5 Aug 2004 14:12:40 -0000 1.216
+++ doc/gdbint.texinfo 6 Aug 2004 20:44:23 -0000
@@ -2134,9 +2134,6 @@ The default name of @value{GDBN}'s initi
@item NO_STD_REGS
This macro is deprecated.
-@item NO_SYS_FILE
-Define this if your system does not have a @code{<sys/file.h>}.
-
@item SIGWINCH_HANDLER
If your host defines @code{SIGWINCH}, you can define this to be the name
of a function to be called if @code{SIGWINCH} is received.
@@ -4404,12 +4401,6 @@ needs to know this so that it can subtra
addresses in the upage, that are obtained via ptrace or from core files.
On systems that don't need this value, set it to zero.
-@item KERNEL_U_ADDR_BSD
-@findex KERNEL_U_ADDR_BSD
-Define this to cause @value{GDBN} to determine the address of @code{u} at
-runtime, by using Berkeley-style @code{nlist} on the kernel's image in
-the root directory.
-
@item KERNEL_U_ADDR_HPUX
@findex KERNEL_U_ADDR_HPUX
Define this to cause @value{GDBN} to determine the address of @code{u} at
@@ -4427,10 +4418,6 @@ Defines the format for the name of a @fi
defined in @file{nm.h} @emph{only} in order to override the default
definition in @file{procfs.c}.
-@item PTRACE_FP_BUG
-@findex PTRACE_FP_BUG
-See @file{mach386-xdep.c}.
-
@item PTRACE_ARG3_TYPE
@findex PTRACE_ARG3_TYPE
The type of the third argument to the @code{ptrace} system call, if it