ia64 register cache (not!)

David Lecomber david@lecomber.net
Thu Feb 9 14:40:00 GMT 2006


On Thu, 2006-02-09 at 09:19 -0500, Daniel Jacobowitz wrote:
> On Thu, Feb 09, 2006 at 02:15:53PM +0000, M.M. Kettenis wrote:
> > Are you sure the ia64 kernel supports the PTRACE_GETREGS/PTRACE_SETREGS
> > requests?  If those are implemented someone really should add support
> > for them.  Note that even if the current kernels do, there may be
> > older kernels that don't have these.  A possible solution would be to
> > use PTRACE_GETREGS if available and fall back on PTRACE_PEEK_USER if it
> > isn't (that's what we do on Linux/i386).  But if kernels without
> > PTRACE_GETREGS are no longer in widespread use, it's probably not
> > worth bothering.
> 
> FYI, it wasn't in the very original ia64 port, but was added about four
> years ago.

That sounds about right - I think RH AS 2.1  does not support it, but RH
EL 4 does have GETREGS.  

Note the ptrace() man page on IA64 refers to PTRACE_GETFPREGS -- and
that definitely does *not* exist!!

Cheers
d.




More information about the Gdb mailing list