aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_wait.h
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/gdb_wait.h
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/gdb_wait.h')
-rw-r--r--gdb/gdb_wait.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdb_wait.h b/gdb/gdb_wait.h
index d0f94f3..36e797b 100644
--- a/gdb/gdb_wait.h
+++ b/gdb/gdb_wait.h
@@ -86,11 +86,19 @@
#endif
#ifndef WSETEXIT
+# ifdef W_EXITCODE
+#define WSETEXIT(w,status) ((w) = W_EXITCODE(status,0))
+# else
#define WSETEXIT(w,status) ((w) = (0 | ((status) << 8)))
+# endif
#endif
#ifndef WSETSTOP
+# ifdef W_STOPCODE
+#define WSETSTOP(w,status) ((w) = W_STOPCODE(status,0))
+# else
#define WSETSTOP(w,sig) ((w) = (0177 | ((sig) << 8)))
+# endif
#endif
/*