diff options
author | Pedro Alves <palves@redhat.com> | 2008-05-15 20:11:48 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-05-15 20:11:48 +0000 |
commit | 4fdebdd056c03d3bee6673beacbb6be2e1496219 (patch) | |
tree | dea849cb035a00f431676485bfbb4ba54f7964a1 /gdb/linux-nat.c | |
parent | bc882aa93773516867c0fb64b3e992c77787a58c (diff) | |
download | gdb-4fdebdd056c03d3bee6673beacbb6be2e1496219.zip gdb-4fdebdd056c03d3bee6673beacbb6be2e1496219.tar.gz gdb-4fdebdd056c03d3bee6673beacbb6be2e1496219.tar.bz2 |
* linux-nat.c (trap_ptid): Delete.
(linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
Adjust.
* linux-thread-db.c (thread_db_wait): Adjust.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 5d15d42..091e641 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -790,11 +790,6 @@ struct lwp_info *lwp_list; static int num_lwps; -/* If the last reported event was a SIGTRAP, this variable is set to - the process id of the LWP/thread that got it. */ -ptid_t trap_ptid; - - /* Since we cannot wait (in linux_nat_wait) for the initial process and any cloned processes with a single call to waitpid, we have to use the WNOHANG flag and call waitpid in a loop. To optimize @@ -1404,8 +1399,6 @@ linux_nat_detach (char *args, int from_tty) target_pid_to_str (lwp_list->ptid)); } - trap_ptid = null_ptid; - /* Destroy LWP info; it's no longer valid. */ init_lwp_list (); @@ -2777,14 +2770,11 @@ retry: if (WIFSTOPPED (status) && WSTOPSIG (status) == SIGTRAP) { - trap_ptid = lp->ptid; if (debug_linux_nat) fprintf_unfiltered (gdb_stdlog, - "LLW: trap_ptid is %s.\n", - target_pid_to_str (trap_ptid)); + "LLW: trap ptid is %s.\n", + target_pid_to_str (lp->ptid)); } - else - trap_ptid = null_ptid; if (lp->waitstatus.kind != TARGET_WAITKIND_IGNORE) { @@ -2916,8 +2906,6 @@ linux_nat_kill (void) static void linux_nat_mourn_inferior (void) { - trap_ptid = null_ptid; - /* Destroy LWP info; it's no longer valid. */ init_lwp_list (); |