ARM and virtual/raw registers
Richard Earnshaw
rearnsha@arm.com
Sun May 12 07:40:00 GMT 2002
rearnsha@arm.com said:
> See the code below (which is very much a work-in-progress..., so
> don't even expect it to compile ;-)
Of course, there was a major flaw in the WIP code I just posted, that
confuses what I was talking about in a significant way. The code for
arm_register_read, should be:
static void
arm_register_read (struct gdbarch *gdbarch, int regno, char *buffer)
{
if (arm_register_info[regno].regcache != ARM_PHYS_NONE)
/* Recover the register directly from the cache. */
regcache_read (arm_register_info[regno].regcache, buffer);
else
arm_pseudo_register_read (gdbarch, regno, buffer);
}
R.
More information about the Gdb
mailing list