This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: ARM and virtual/raw registers
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 10 May 2002 14:42:58 -0400
- Subject: Re: ARM and virtual/raw registers
- References: <200205101629.RAA06801@cam-mail2.cambridge.arm.com>
> If, as I understand your previous postings to imply, having pseudo
> registers stored in the cache is wrong, why does regcache_read() allow
> them?
>
> regcache_read (int rawnum, char *buf)
> {
> gdb_assert (rawnum >= 0 && rawnum < (NUM_REGS + NUM_PSEUDO_REGS));
Lets just pretend you didn't see that :-)
Some existing mechanisms store pseudo-register values in the cache. In
addition ``NUM_REGS'' is overloaded - it controls too many aspects of
GDB - num regs in G packet, num regs to save across an inferior function
call, ...
Andrew