This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: typo in gdb/gdb_ptrace.c
From: Andreas Schwab <schwab@suse.de>
Cc: gdb-patches@sources.redhat.com
Chad Harrington <harrington.chad@gmail.com> writes:
> Below is the diff patch for my fix. It is not critical, but it sure
> looks like a mistake to me. This was in gdb-6.3, as you can see. The
> preprocessor is told to define PT_ATTACH if PTRACE_DETACH is defined.
> I think it should only define PT_ATTACH if PTRACE_ATTACH is defined,
> but I think they'd both be defined if one or the other is already
> defined anyway... It merely appears to be a typo. :-)
There is another typo in the previous line. I've checked this in as
obvious.
2005-06-23 Andreas Schwab <schwab@suse.de>
* gdb_ptrace.h: Fix typos when checking for PT_ATTACH. Reported
by Chad Harrington <harrington.chad@gmail.com>.
Thanks!
Mark