This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [10/10] RFC: remove gdb_wait.h
Assuming sys/wait.h doesn't get replaced on older GNU/Linux systems,
this loses these bits:
/* For native GNU/Linux we may use waitpid and the __WCLONE option.
<GRIPE> It is of course dangerous not to use the REAL header file...
</GRIPE>. */
/* Bits in the third argument to `waitpid'. */
#ifndef WNOHANG
#define WNOHANG 1 /* Don't block waiting. */
#endif
#ifndef WUNTRACED
#define WUNTRACED 2 /* Report status of stopped children. */
#endif
#ifndef __WCLONE
#define __WCLONE 0x80000000 /* Wait for cloned process. */
#endif
I'm not sure whether we still encounter systems without these, and
if gdb works on them at all. Waiting for build failure reports would
be an option.
We could move them to say, common/linux-ptrace.h. __WALL is already there.
--
Pedro Alves