diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-12-31 21:04:51 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-12-31 21:04:51 +0000 |
commit | 9ee57c332efe6e35ee95d8be28f89c320590e0a3 (patch) | |
tree | 534180cc1ea69fcb73a26a76247247003eecf013 /gdb/linux-nat.h | |
parent | 59f80f10887fdfa0299b22f33b11efa4ec069fee (diff) | |
download | gdb-9ee57c332efe6e35ee95d8be28f89c320590e0a3.zip gdb-9ee57c332efe6e35ee95d8be28f89c320590e0a3.tar.gz gdb-9ee57c332efe6e35ee95d8be28f89c320590e0a3.tar.bz2 |
* 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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h index 5b39abf..d3f4f39 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 *), |