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: Sun, 12 May 2002 11:51:18 -0400
- Subject: Re: ARM and virtual/raw registers
- References: <200205121529.QAA02940@cam-mail2.cambridge.arm.com>
> ac131313@cygnus.com said:
>
>> And fixing remote.c is on the hit list (I should fix Daniel's bug) :-)
>> It already has an internal table that does a mapping only it is 1:1.
>> remote.c is complicated, however. The mapping will need to be defined
>> at run (and not compile) time - this makes trying to perform
>> transformations (and not simple mappings) on the way through more
>> difficult.
>
>
> Surely it only has to select one of several pre-compiled mappings that is
> appropriate for the target processor configuration.
I wish! :-)
I don't think anyone knows how many mappings there are. Every single
mips target, for instance, likely has a different mapping. Instead of
trying to second guess all of them, remote.c is being changed so that
the user can specify them at runtime. That way, when (not if :-) the
default mapping screws up, the user can fix it.
enjoy,
Andrew