This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM and virtual/raw registers



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]