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.
This commit is contained in:
Michael Snyder
2000-03-17 19:50:29 +00:00
parent 684b81fabf
commit ca9c33a529
3 changed files with 16 additions and 3 deletions

View File

@ -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
/*