mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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:
@ -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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user