This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [robertl@sco.com: threads RH6/Sparc vs. GDB]
Jim Kingdon wrote:
>
> > From what I recall, sys/ptrace.h and one of the GDB headers were each
> > trying to outsmart the other.
>
> No, it is two system headers. /usr/include/asm-sparc/ptrace.h
> (included via a dizzying cascade of includes from
> /usr/include/signal.h) and /usr/include/sys/ptrace.h. The former
> contains "#define PTRACE_GETREGS 12" and the latter has an enum which
> contains "PTRACE_GETREGS = 12".
>
If this include problem is with GLIBC 2.1, then a fix similar to the
following would probably be appropriate. Problems similar to this have
happened on other platforms. What really needs to be done is to fix
GLIBC's use of the kernel headers. I submitted patches for the ARM port
a while back to fix similar problems. See the following posts from
libc-hacker.
http://sourceware.cygnus.com/ml/libc-hacker/1999-01/msg00030.html
http://sourceware.cygnus.com/ml/libc-hacker/1999-09/msg00001.html
http://sourceware.cygnus.com/ml/libc-hacker/1998-05/msg00277.html
Just a suggestion.
Scott
--
Scott Bambrough - Software Engineer
REBEL.COM http://www.rebel.com
NetWinder http://www.netwinder.org