This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Re: New method to get real length of register
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yao Qi wrote:
> On Wed, Aug 23, 2006 at 10:00:08PM +0200, Tim Moore wrote:
>
> Register.get() could get the member length to do ptrace operations
> with kernel, although member length is not the real length of
> register, but it is the right length to kernel.
This shouldn't be necessary; PtraceByteBuffer "does the right thing"
with respect to short read and writes into the buffer that stores the
register values.
>
> getLength() should return real length of register to tell the
> outsiders.
>
> For x86 and x86-64, all the segment registers are different from
> others, so how about write a new class IA32SegmentRegister, which
> extends IA32Register(EMT64SegmentRegister extends EMT64Register),
> and override getLength() to return these real length.
> Condation or status register makes troubles on PPC64, so a new class,
> PPC64_32Register, could do the similar thing.
This is the approach I had in mind.
Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFE7WqceDhWHdXrDRURAh2QAJ92zG6bVQUSS5CHBzj+YabNEUfFmACfV7qI
tkpmmgLb/PnJWIRr5THWs/U=
=D1kz
-----END PGP SIGNATURE-----