aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-09-03 18:41:28 +0000
committerMark Kettenis <kettenis@gnu.org>2000-09-03 18:41:28 +0000
commitfb0e1ba78030bbd38e9733f50b79b9b691f59634 (patch)
tree590274afab0d6f022f637b57a3289ff2976fbd6b /gdb/config
parent205b2e50545ed404e769cbc264633db5c1ca352e (diff)
downloadgdb-fb0e1ba78030bbd38e9733f50b79b9b691f59634.zip
gdb-fb0e1ba78030bbd38e9733f50b79b9b691f59634.tar.gz
gdb-fb0e1ba78030bbd38e9733f50b79b9b691f59634.tar.bz2
* config/i386/nm-linux.h (PREPARE_TO_PROCEED, ATTCH_LWP,
GET_THREAD_SIGNALS): New defines. * config/i386/linux.mh (NATDEPFILES): Remove lin-thread.o and linux-threads.o. Add proc-service.o, thread-db.o and lin-lwp.o. * proc-service.c: New file. * thread-db.c: New file. * lin-lwp.c: New file.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/i386/linux.mh4
-rw-r--r--gdb/config/i386/nm-linux.h20
2 files changed, 19 insertions, 5 deletions
diff --git a/gdb/config/i386/linux.mh b/gdb/config/i386/linux.mh
index daaab15..06c5e80 100644
--- a/gdb/config/i386/linux.mh
+++ b/gdb/config/i386/linux.mh
@@ -5,7 +5,7 @@ XDEPFILES=
NAT_FILE= nm-linux.h
NATDEPFILES= infptrace.o solib.o inftarg.o fork-child.o corelow.o \
- core-aout.o i386v-nat.o i386-linux-nat.o linux-thread.o lin-thread.o \
- i387-nat.o
+ core-aout.o i386v-nat.o i386-linux-nat.o i387-nat.o \
+ proc-service.o thread-db.o lin-lwp.o
LOADLIBES = -ldl -rdynamic
diff --git a/gdb/config/i386/nm-linux.h b/gdb/config/i386/nm-linux.h
index f95c6fe..daebbb7 100644
--- a/gdb/config/i386/nm-linux.h
+++ b/gdb/config/i386/nm-linux.h
@@ -1,5 +1,5 @@
-/* Native support for GNU/Linux, for GDB, the GNU debugger.
- Copyright (C) 1986, 1987, 1989, 1992, 1996, 1998, 2000
+/* Native support for Linux/x86.
+ Copyright 1986, 1987, 1989, 1992, 1996, 1998, 2000
Free Software Foundation, Inc.
This file is part of GDB.
@@ -79,4 +79,18 @@ extern CORE_ADDR i386_stopped_by_watchpoint (int);
extern int i386_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw);
extern int i386_remove_watchpoint (int pid, CORE_ADDR addr, int len);
-#endif /* #ifndef NM_LINUX_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 (int pid, int verbose);
+#define ATTACH_LWP(pid, verbose) lin_lwp_attach_lwp ((pid), (verbose))
+
+extern void lin_thread_get_thread_signals (sigset_t *mask);
+#define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
+
+#endif /* nm_linux.h */