/* IBM PowerPC native-dependent macros for GDB, the GNU debugger.
- Copyright 1995, 2000 Free Software Foundation, Inc.
+ Copyright 1995, 2000, 2007 Free Software Foundation, Inc.
This file is part of GDB.
#ifndef NM_LINUX_H
-#include "nm-linux.h"
+#include "config/nm-linux.h"
#define NM_LINUX_H
#define KERNEL_U_SIZE kernel_u_size()
extern int kernel_u_size (void);
-#define U_REGS_OFFSET 0
+/* This is the amount to subtract from u.u_ar0
+ to get the offset in the core file of the register values. */
+#define KERNEL_U_ADDR 0x0
-#define REGISTER_U_ADDR(addr, blockend, regno) \
- (addr) = ppc_register_u_addr ((blockend),(regno));
-
-/* No <sys/reg.h> */
-
-#define NO_SYS_REG_H
-
-/* FIXME: kettenis/2000-09-03: This should be moved to ../nm-linux.h
- once we have converted all Linux targets to use the new threads
- stuff (without the #undef of course). */
-
-extern int lin_lwp_prepare_to_proceed (void);
-#undef PREPARE_TO_PROCEED
-#define PREPARE_TO_PROCEED(select_it) lin_lwp_prepare_to_proceed ()
-
-extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose);
-#define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose))
-
-#include <signal.h>
-
-extern void lin_thread_get_thread_signals (sigset_t *mask);
-#define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
+#define FETCH_INFERIOR_REGISTERS
#endif /* #ifndef NM_LINUX_H */