aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/nm-linux.h
diff options
context:
space:
mode:
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