This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: ARM and virtual/raw registers
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: Richard dot Earnshaw at arm dot com, gdb at sources dot redhat dot com
- Date: Sun, 12 May 2002 15:39:43 +0100
- Subject: Re: ARM and virtual/raw registers
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
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.