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
Michael Snyder wrote:
>
> Daniel Berlin+list.gdb-patches wrote:
> >
> > >>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
> >
> > Isn't there a test for PTRACE in the configuration script?
> > Can't we use that somehow, rather than __DJGPP__?
> > maybe HAVE_PTRACE exists in config.h?
> >
> > I ask because we don't have ptrace on BeOS either, and i don't think
> > we want to have more than one ifdef.
>
> The ptrace message is really old, and there are now lots of
> systems that don't use ptrace (including Solaris, Irix, and
> yes even the Hurd). What if we move that msg down into
> inflow or infptrace?
Oh -- on second thought, the message is appropriately placed --
it just doesn't need to mention ptrace! The semantics of
print_sys_errmsg is to spell out what "errno" says. Perhaps
we should replace the string "ptrace" with the name of the
function that contains this code.