From a14bd2ea8937e02184939ebdeaa5a8a28473b5e9 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 14 Oct 2001 20:42:07 +0000 Subject: * config/nm-linux.h (struct objfile): Remove forward declaration. (linuxthreads_new_objfile): Remove prototype. (linuxthreads_pid_to_str): Remove prototype. (PREPARE_TO_PROCEED): Redefine in terms of lin_lwp_prepare_to_proceed. (struct target_waitstatus): Forward declaration. (child_wait): New prototype. (CHILD_WAIT): Define. (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals, GET_THREAD_SIGNAL): Moved here from arch-specific files. * config/alpha/nm-linux.h, config/arm/nm-linux.h, config/ia64/nm-linux.h, config/mips/nm-linux.h, config/powerpc/nm-linux.h: Don't include . (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals, GET_THREAD_SIGNAL): Remove. * config/i386/nm-linux.h: Likewise. (struct target_waitstatus, child_wait, CHILD_WAIT): Remove. * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES): Remove linux-thread.o. Add proc-service.o, thread-db.o and lin-lwp.o. (LOADLIBES): New variable. --- gdb/config/nm-linux.h | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'gdb/config/nm-linux.h') diff --git a/gdb/config/nm-linux.h b/gdb/config/nm-linux.h index a152400..59e5acb 100644 --- a/gdb/config/nm-linux.h +++ b/gdb/config/nm-linux.h @@ -25,6 +25,16 @@ /* Tell GDB that we can attach and detach other processes. */ #define ATTACH_DETACH +/* Since we're building a native debugger, we can include + to find the range of real-time signals. */ + +#include + +#ifdef __SIGRTMIN +#define REALTIME_LO __SIGRTMIN +#define REALTIME_HI (__SIGRTMAX + 1) +#endif + /* We define this if link.h is available, because with ELF we use SVR4 style shared libraries. */ @@ -34,38 +44,26 @@ #endif -/* FIXME: kettenis/2001-07-11: Stuff on this page is obsolete, and - only used by the (unmaintained) sparc and m68k ports. */ - -/* Support for the glibc LinuxThreads package. */ - -struct objfile; +/* Override child_wait in `inftarg.c'. */ +struct target_waitstatus; +extern ptid_t child_wait (ptid_t ptid, struct target_waitstatus *ourstatus); +#define CHILD_WAIT -/* Hook to look at new objfiles (shared libraries). */ -extern void linuxthreads_new_objfile (struct objfile *objfile); +extern int lin_lwp_prepare_to_proceed (void); +#define PREPARE_TO_PROCEED(select_it) lin_lwp_prepare_to_proceed () -/* Method to print a human-readable thread description. */ -extern char *linuxthreads_pid_to_str (ptid_t ptid); +extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose); +#define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose)) -extern int linuxthreads_prepare_to_proceed (int step); -#define PREPARE_TO_PROCEED(select_it) linuxthreads_prepare_to_proceed (1) - +extern void lin_thread_get_thread_signals (sigset_t *mask); +#define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask) /* Defined to make stepping-over-breakpoints be thread-atomic. */ #define USE_THREAD_STEP_NEEDED 1 + /* Use elf_gregset_t and elf_fpregset_t, rather than gregset_t and fpregset_t. */ #define GDB_GREGSET_T elf_gregset_t #define GDB_FPREGSET_T elf_fpregset_t - -/* Since we're building a native debugger, we can include - to find the range of real-time signals. */ - -#include - -#ifdef __SIGRTMIN -#define REALTIME_LO __SIGRTMIN -#define REALTIME_HI (__SIGRTMAX + 1) -#endif -- cgit v1.1