This is the mail archive of the
mailing list for the GDB project.
Re: [email@example.com: threads RH6/Sparc vs. GDB]
> > 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".
Yes, that does definitely sound familar now that you mention it. This
has been in my local tree for several months, so I had forgotten the
details. Only by looking at the cpp output does it become "obvious".