diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-08-06 20:47:25 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-08-06 20:47:25 +0000 |
commit | 53f6a332cc856460c6822521685d7fcaa4f5c6f8 (patch) | |
tree | 50972b111b5abf04aa2be655421c11b652c9fa03 /gdb/infptrace.c | |
parent | 31b1533957295cec57551423ffbb983c9a5a9de0 (diff) | |
download | gdb-53f6a332cc856460c6822521685d7fcaa4f5c6f8.tar.gz |
* 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.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r-- | gdb/infptrace.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c index c3b18569e21..11fe2710376 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -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) |