[PATCH] Fix regcache_restore() handling of unavailable regs.

David Miller davem@davemloft.net
Tue Oct 11 18:28:00 GMT 2011


From: Pedro Alves <pedro@codesourcery.com>
Date: Tue, 11 Oct 2011 11:44:49 +0100

> OOC, what register are you seeing as unavailable?

%wim and %tbr on sparc 32-bit

> Is this a case of ptrace not exposing all the machine's registers?

Yes, ptrace() does not provide these registers.  They really aren't
relevant for analyzing userland process execution at all.

They are, however, useful when debugging an operating system over
a serial line with GDB, and the Sparc infrastructure for that does
properly provide these registers.



More information about the Gdb-patches mailing list