This is the mail archive of the gdb-patches@sourceware.org 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: [rfc] [00/16] Get rid of current gdbarch


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


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