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: rs6000-tdep should probably not depend on the ppc-sim code


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


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