diff options
author | Michael Snyder <msnyder@vmware.com> | 2003-06-19 22:52:04 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2003-06-19 22:52:04 +0000 |
commit | 0274a8cedbd446865a1e5fdec8057f4a327e19aa (patch) | |
tree | 65a8a30cdbc33868844ea760ca2628bf9e87535a /gdb/lin-lwp.c | |
parent | adf5f719da64a54fa206ad15a5eebde9abbe2666 (diff) | |
download | gdb-0274a8cedbd446865a1e5fdec8057f4a327e19aa.zip gdb-0274a8cedbd446865a1e5fdec8057f4a327e19aa.tar.gz gdb-0274a8cedbd446865a1e5fdec8057f4a327e19aa.tar.bz2 |
2003-06-19 Michael Snyder <msnyder@redhat.com>
* linux-nat.h: New file.
* linux-nat.c: Include linux-nat.h.
* lin-lwp.c: Include linux-nat.h.
Move struct lwp_info def to linux-nat.h.
* linux-proc.c: Include linux-nat.h.
(linux_make_note_section): Iterate over lwps instead of threads.
(linux_do_thread_registers): Use lwp instead of merged pid.
* config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
* Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
Add dependency on linux_nat_h.
Diffstat (limited to 'gdb/lin-lwp.c')
-rw-r--r-- | gdb/lin-lwp.c | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c index 30dbd96..a82adb7 100644 --- a/gdb/lin-lwp.c +++ b/gdb/lin-lwp.c @@ -40,6 +40,8 @@ static int debug_lin_lwp; extern char *strsignal (int sig); +#include "linux-nat.h" + /* On GNU/Linux there are no real LWP's. The closest thing to LWP's are processes sharing the same VM space. A multi-threaded process is basically a group of such processes. However, such a grouping @@ -73,43 +75,6 @@ extern char *strsignal (int sig); threads will run out of processes, even if the threads exit, because the "zombies" stay around. */ -/* Structure describing a LWP. */ -struct lwp_info -{ - /* The process id of the LWP. This is a combination of the LWP id - and overall process id. */ - ptid_t ptid; - - /* Non-zero if this LWP is cloned. In this context "cloned" means - that the LWP is reporting to its parent using a signal other than - SIGCHLD. */ - int cloned; - - /* Non-zero if we sent this LWP a SIGSTOP (but the LWP didn't report - it back yet). */ - int signalled; - - /* Non-zero if this LWP is stopped. */ - int stopped; - - /* Non-zero if this LWP will be/has been resumed. Note that an LWP - can be marked both as stopped and resumed at the same time. This - happens if we try to resume an LWP that has a wait status - pending. We shouldn't let the LWP run until that wait status has - been processed, but we should not report that wait status if GDB - didn't try to let the LWP run. */ - int resumed; - - /* If non-zero, a pending wait status. */ - int status; - - /* Non-zero if we were stepping this LWP. */ - int step; - - /* Next LWP in list. */ - struct lwp_info *next; -}; - /* List of known LWPs. */ static struct lwp_info *lwp_list; |