rs6000-tdep should probably not depend on the ppc-sim code

Pedro Alves palves@redhat.com
Thu Mar 15 13:07:00 GMT 2012


On 03/14/2012 08:42 PM, Joel Brobecker wrote:

>> i think the ppc code here is the odd man out.  gdb<->sim interaction
>> should normally be gated through the marshaling properties of the gdb
>> protocol.  the rs6000 gdb code executing sim funcs directly is
>> something we should discourage with pain rather than making easier.
> 
> I agree.
> 
> I had in fact looked quickly at the idea of getting rid of that call
> into the sim, but nothing obvious really came up. I guess someone
> (like myself, maybe) will have to look deeper into this. There should
> be a better to do this - we just need to figure out what all this is
> used for.

I think the right fix is for the sim to suply a xml target description to
gdb, instead of all this hardcoding/coupling of sim registers in gdb.
The sim_regno things in rs6000-tdep.c would then disappear altogether.

-- 
Pedro Alves



More information about the Gdb-patches mailing list