This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

typo in gdb/gdb_ptrace.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]