aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/nm-linux.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-10-14 20:42:07 +0000
committerMark Kettenis <kettenis@gnu.org>2001-10-14 20:42:07 +0000
commita14bd2ea8937e02184939ebdeaa5a8a28473b5e9 (patch)
tree76e7b3040a450d095063b5bf75add539fe7c432f /gdb/config/nm-linux.h
parent8e4d17db0ec7c7417fd3329debba013076f96610 (diff)
downloadgdb-a14bd2ea8937e02184939ebdeaa5a8a28473b5e9.zip
gdb-a14bd2ea8937e02184939ebdeaa5a8a28473b5e9.tar.gz
gdb-a14bd2ea8937e02184939ebdeaa5a8a28473b5e9.tar.bz2
* 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 <signal.h>. (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.
Diffstat (limited to 'gdb/config/nm-linux.h')
-rw-r--r--gdb/config/nm-linux.h44
1 files changed, 21 insertions, 23 deletions
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 <signal.h>
+ to find the range of real-time signals. */
+
+#include <signal.h>
+
+#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 <signal.h>
- to find the range of real-time signals. */
-
-#include <signal.h>
-
-#ifdef __SIGRTMIN
-#define REALTIME_LO __SIGRTMIN
-#define REALTIME_HI (__SIGRTMAX + 1)
-#endif