diff options
author | Michael Snyder <msnyder@specifix.com> | 2000-03-17 19:50:29 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2000-03-17 19:50:29 +0000 |
commit | 33fb4442cd7c78909107b7f24c89d718b0034248 (patch) | |
tree | 1baa4057183821ce094a3a220af59b269eed2558 /gdb/gdb_wait.h | |
parent | c9e24369e4d4709d5fdc133680b21a708503dfaa (diff) | |
download | gdb-33fb4442cd7c78909107b7f24c89d718b0034248.tar.gz |
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdb_wait.h b/gdb/gdb_wait.h index d0f94f30c4a..36e797b2223 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 /* |