aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-thread.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-03-17 19:50:29 +0000
committerMichael Snyder <msnyder@vmware.com>2000-03-17 19:50:29 +0000
commitca9c33a529ee00379000961e78cff4dcf5ce94f2 (patch)
tree9bd09c7a2fe91fac36d4b369b94eb8a37fd386e3 /gdb/linux-thread.c
parent684b81fabfc87517b50c9b0b4254e4afc1a67e24 (diff)
downloadgdb-ca9c33a529ee00379000961e78cff4dcf5ce94f2.zip
gdb-ca9c33a529ee00379000961e78cff4dcf5ce94f2.tar.gz
gdb-ca9c33a529ee00379000961e78cff4dcf5ce94f2.tar.bz2
2000-03-17 Mark Kettenis <kettenis@gnu.org>
* gdb_wait.h: add definitions of WSETSTOP and WSETEXIT for Linux. * linux-thread.c: Use WSETSTOP instead of W_STOPCODE.
Diffstat (limited to 'gdb/linux-thread.c')
-rw-r--r--gdb/linux-thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/linux-thread.c b/gdb/linux-thread.c
index dc91edf..5539e2e 100644
--- a/gdb/linux-thread.c
+++ b/gdb/linux-thread.c
@@ -1129,7 +1129,7 @@ linuxthreads_attach (args, from_tty)
linuxthreads_breakpoints_inserted = 1;
linuxthreads_breakpoint_last = -1;
linuxthreads_wait_last = -1;
- linuxthreads_exit_status = __W_STOPCODE(0);
+ WSETSTOP (linux_exit_status, 0);
child_ops.to_attach (args, from_tty);
@@ -1189,7 +1189,7 @@ linuxthreads_detach (args, from_tty)
linuxthreads_find_trap (inferior_pid, 1);
linuxthreads_wait_last = -1;
- linuxthreads_exit_status = __W_STOPCODE(0);
+ WSETSTOP (linux_exit_status, 0);
}
linuxthreads_inferior_pid = 0;
@@ -1601,7 +1601,7 @@ Use the \"file\" or \"exec-file\" command.");
linuxthreads_breakpoints_inserted = 1;
linuxthreads_breakpoint_last = -1;
linuxthreads_wait_last = -1;
- linuxthreads_exit_status = __W_STOPCODE(0);
+ WSETSTOP (linux_exit_status, 0);
if (linuxthreads_max)
linuxthreads_attach_pending = 1;