read_register_byte can't work with pseudo-reg model
Richard Earnshaw
rearnsha@arm.com
Fri May 17 07:51:00 GMT 2002
rearnsha@arm.com said:
> Would the following tweak be acceptable? That is, only do the update
> if the register has a name.
> else if (REGISTER_NAME (regnum) != NULL && *REGISTER_NAME (regnum)
> != '\0')
> {
> /* Is this register completely within the range the user is
> writing? */
> if (myregstart <= regstart && regend <= myregend)
> write_register_gen (regnum, myaddr + (regstart - myregstart));
> /* The register partially overlaps the range being written. */
> else
> {
I've just noticed that read_register_bytes is doing almost exactly this.
Why do the two differ?
R.
More information about the Gdb
mailing list