This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: ARM and virtual/raw registers
> If I had my way, it would read:
>
> static void
> arm_register_read (struct gdbarch *gdbarch, struct pseudoreg *pseudo, char *buffer)
> {
> arm_pseudo_register_read (gdbarch, pseudo, buffer);
> }
PS: Checking my notes, I've previously used the term ``cooked'' to avoid
confusion with the existing ``pseudo-reg'' framework. So the above
would map a ``struct cookedreg'' onto one or more ``struct rawreg'' vis:
> static void
> arm_register_read (struct gdbarch *gdbarch, struct cookedreg *cooked,
char *buffer)
> {
> arm_pseudo_register_read (gdbarch, cooked, buffer);
> }
The thought of having something like:
struct cookedreg;
int cookedreg2i (struct cookedreg *r) { return r - (struct cookedreg
*)someaddress; };
et.al.
To get strongly typed integers in C has also crossed my mind. Outch! :-)
enjoy,
Andrew