diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-12-31 21:04:51 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-12-31 21:04:51 +0000 |
commit | 710d46ac1be8915491e7522e979a24f5da9d614b (patch) | |
tree | 5a5f0267486549467724b4ef005dcaa94da1abf1 /gdb/config | |
parent | 6c28bea9ffd6452e019c321b810480bc3ac28ffa (diff) | |
download | gdb-710d46ac1be8915491e7522e979a24f5da9d614b.tar.gz |
* linux-nat.c (lin_lwp_attach_lwp): Return a status. Do not
add the LWP to our list until we are attached. Warn instead
of erroring if the attach fails.
* linux-nat.h (lin_lwp_attach_lwp): New prototype.
* linux-thread-db.c (attach_thread): Call lin_lwp_attach_lwp
directly. Do not add the thread to our list until we are
successfully attached.
* config/nm-linux.h (lin_lwp_attach_lwp, ATTACH_LWP): Delete.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/nm-linux.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/config/nm-linux.h b/gdb/config/nm-linux.h index b79875eb680..7c06862c9f9 100644 --- a/gdb/config/nm-linux.h +++ b/gdb/config/nm-linux.h @@ -1,6 +1,6 @@ /* Native support for GNU/Linux. - Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005 + Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GDB. @@ -25,9 +25,6 @@ struct target_ops; /* GNU/Linux is SVR4-ish but its /proc file system isn't. */ #undef USE_PROC_FS -extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose); -#define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose)) - extern void lin_thread_get_thread_signals (sigset_t *mask); #define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask) |