aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-09-18 01:08:24 +0000
committerKevin Buettner <kevinb@redhat.com>2000-09-18 01:08:24 +0000
commitfdb28ac40143fc026508662a4df94a2582e6bf99 (patch)
treef20f8ca483a6e96883b00c0b6f119446dd4beca7 /gdb/config
parentafd64b4e2d76f981f6828f9f55fcc03784d6915b (diff)
downloadgdb-fdb28ac40143fc026508662a4df94a2582e6bf99.zip
gdb-fdb28ac40143fc026508662a4df94a2582e6bf99.tar.gz
gdb-fdb28ac40143fc026508662a4df94a2582e6bf99.tar.bz2
Enable Mark Kettenis' linux thread support for Linux/PPC.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/powerpc/linux.mh5
-rw-r--r--gdb/config/powerpc/nm-linux.h30
2 files changed, 15 insertions, 20 deletions
diff --git a/gdb/config/powerpc/linux.mh b/gdb/config/powerpc/linux.mh
index b074e6a..3bc9961 100644
--- a/gdb/config/powerpc/linux.mh
+++ b/gdb/config/powerpc/linux.mh
@@ -5,6 +5,9 @@ XDEPFILES=
XM_CLIBS=
NAT_FILE= nm-linux.h
-NATDEPFILES= infptrace.o solib.o inftarg.o fork-child.o corelow.o core-aout.o core-regset.o ppc-linux-nat.o linux-thread.o
+NATDEPFILES= infptrace.o solib.o inftarg.o fork-child.o corelow.o \
+core-aout.o core-regset.o ppc-linux-nat.o proc-service.o thread-db.o lin-lwp.o
+
+LOADLIBES = -ldl -rdynamic
GDBSERVER_DEPFILES= low-linux.o
diff --git a/gdb/config/powerpc/nm-linux.h b/gdb/config/powerpc/nm-linux.h
index 0ef531c..5eac7d3 100644
--- a/gdb/config/powerpc/nm-linux.h
+++ b/gdb/config/powerpc/nm-linux.h
@@ -28,9 +28,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define KERNEL_U_SIZE kernel_u_size()
extern int kernel_u_size (void);
-/* Tell gdb that we can attach and detach other processes */
-#define ATTACH_DETACH
-
#define U_REGS_OFFSET 0
#define REGISTER_U_ADDR(addr, blockend, regno) \
@@ -40,25 +37,20 @@ extern int kernel_u_size (void);
#define NO_SYS_REG_H
-#ifdef HAVE_LINK_H
-#include "solib.h" /* Support for shared libraries. */
-#define SVR4_SHARED_LIBS
-#endif
-
-/* Support for Linuxthreads. */
-
-#ifdef __STDC__
-struct objfile;
-#endif
+/* 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 void linuxthreads_new_objfile (struct objfile *objfile);
-#define target_new_objfile(OBJFILE) linuxthreads_new_objfile (OBJFILE)
+extern int lin_lwp_prepare_to_proceed (void);
+#undef PREPARE_TO_PROCEED
+#define PREPARE_TO_PROCEED(select_it) lin_lwp_prepare_to_proceed ()
-extern char *linuxthreads_pid_to_str (int pid);
-#define target_pid_to_str(PID) linuxthreads_pid_to_str (PID)
+extern void lin_lwp_attach_lwp (int pid, int verbose);
+#define ATTACH_LWP(pid, verbose) lin_lwp_attach_lwp ((pid), (verbose))
-extern int linuxthreads_prepare_to_proceed (int step);
-#define PREPARE_TO_PROCEED(select_it) linuxthreads_prepare_to_proceed (1)
+#include <signal.h>
+extern void lin_thread_get_thread_signals (sigset_t *mask);
+#define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
#endif /* #ifndef NM_LINUX_H */