* typo in gdb/gdb_ptrace.c
@ 2005-06-23 5:39 Chad Harrington
2005-06-23 9:22 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Chad Harrington @ 2005-06-23 5:39 UTC (permalink / raw)
To: gdb-patches
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. :-)
I hope this helps.
-=Chad
chad@CRPC02:~$ cat gdb-6.3/gdb.diff
--- old/gdb/gdb_ptrace.h 2005-06-22 23:12:52.000000000 -0600
+++ new/gdb/gdb_ptrace.h 2005-06-22 23:13:57.000000000 -0600
@@ -93,7 +93,7 @@
/* Not all systems support attaching and detaching. */
#ifndef PT_ATTCH
-# ifdef PTRACE_DETACH
+# ifdef PTRACE_ATTACH
# define PT_ATTACH PTRACE_ATTACH
# endif
#endif
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: typo in gdb/gdb_ptrace.c
2005-06-23 5:39 typo in gdb/gdb_ptrace.c Chad Harrington
@ 2005-06-23 9:22 ` Andreas Schwab
2005-06-23 20:11 ` Mark Kettenis
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2005-06-23 9:22 UTC (permalink / raw)
To: Chad Harrington; +Cc: gdb-patches
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>.
--- gdb/gdb_ptrace.h.~1.3.~ 2004-11-22 13:57:48.000000000 +0100
+++ gdb/gdb_ptrace.h 2005-06-23 11:02:57.000000000 +0200
@@ -92,8 +92,8 @@
/* Not all systems support attaching and detaching. */
-#ifndef PT_ATTCH
-# ifdef PTRACE_DETACH
+#ifndef PT_ATTACH
+# ifdef PTRACE_ATTACH
# define PT_ATTACH PTRACE_ATTACH
# endif
#endif
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: typo in gdb/gdb_ptrace.c
2005-06-23 9:22 ` Andreas Schwab
@ 2005-06-23 20:11 ` Mark Kettenis
0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2005-06-23 20:11 UTC (permalink / raw)
To: schwab; +Cc: harrington.chad, gdb-patches
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-23 20:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-23 5:39 typo in gdb/gdb_ptrace.c Chad Harrington
2005-06-23 9:22 ` Andreas Schwab
2005-06-23 20:11 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox