Re: [rfc] [00/16] Get rid of current gdbarch

Daniel Jacobowitz
2007-10-10T11:54:00Z

On Wed, Oct 10, 2007 at 11:03:50AM +0200, Mark Kettenis wrote:
> The solution here is (and always has been) making GDB's register
> number encoding a truly internal encoding. Then we could easily unify
> the different rs6000/powerpc variants. I understand that people want
> to keep the ability to talk to old stubs, so the remote target support
> code in GDB should take care of doing the conversion.

The patches I posted last week do this for PowerPC, in fact!

But there are places where we can't do it this way - at least not
without bigger changes. For instance, on MIPS the
dwarf2_reg_to_regnum method returns pseudo registers. The numbering
of pseudo registers starts at NUM_REGS, which varies depending on
the OS/ABI and on what target we end up connected to :-(

--
Daniel Jacobowitz
CodeSourcery