This is the mail archive of the
mailing list for the GDB project.
Re: [firstname.lastname@example.org: 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
Just a suggestion.
Scott Bambrough - Software Engineer