summaryrefslogtreecommitdiff
path: root/gdb/linux-nat.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-12-31 21:04:51 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-12-31 21:04:51 +0000
commit710d46ac1be8915491e7522e979a24f5da9d614b (patch)
tree5a5f0267486549467724b4ef005dcaa94da1abf1 /gdb/linux-nat.h
parent6c28bea9ffd6452e019c321b810480bc3ac28ffa (diff)
downloadgdb-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/linux-nat.h')
-rw-r--r--gdb/linux-nat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h
index 5b39abfcb04..d3f4f3974b7 100644
--- a/gdb/linux-nat.h
+++ b/gdb/linux-nat.h
@@ -80,6 +80,8 @@ extern void linux_enable_event_reporting (ptid_t ptid);
extern ptid_t linux_handle_extended_wait (int pid, int status,
struct target_waitstatus *ourstatus);
+extern int lin_lwp_attach_lwp (ptid_t ptid, int verbose);
+
/* Iterator function for lin-lwp's lwp list. */
struct lwp_info *iterate_over_lwps (int (*callback) (struct lwp_info *,
void *),