This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [RFA] Don't talk about ptrace when there's none
On Thu, Apr 06, 2000 at 10:19:16AM -0400, Eli Zaretskii wrote:
>Ideally, HAVE_PTRACE and CANT_FORK would be enough in this case. But
>the former doesn't seem to exist, while the latter is used
>sporadically in a couple of source files, but doesn't appear to be a
>legit global symbol that we could use.
>
>> maybe HAVE_PTRACE exists in config.h?
>
>I cannot find it there.
>
>> I ask because we don't have ptrace on BeOS either, and i don't think
>> we want to have more than one ifdef.
>
>We could have some OS-specific ifdefs at the top of infrun.c, if no
>other good options exist, but that's ugly.
Yeah. Cygwin doesn't need this either, FWIW.
Isn't there a define that is specific to ptrace somewhere that we could
use to control the definition of a HAVE_PTRACE? Or, alternatively, couldn't
we just add HAVE_PTRACE to the appropriate target headers?
cgf