This is the mail archive of the gdb-patches@sources.redhat.com 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: Add support for target switches in simulator


> Hi Richard,
> 
> 
>> > > How does this proposed facility compare to that provided by
>> > > sim/common/sim-options*?
> 
>> > 
>> > It is a similar kind of thing accept that it has two advantages:
>> > 
>> >   * It works for simulators that do not use sim-common.[ch]  (such as
>> >     the ARM simualtor).
> 
>> 
>> Is there a good reason why the ARM simulator is not using sim-common?
> 
> 
> I doubt it.  I suspect that it is just a historical thing.

It is non-trivial.  Sim-common is somewhat monolythic (all or nothing) 
and that makes it less than easy to use just some parts of the framework.

In hindsight (hey I'm part responsible :-) I think it should have been 
less macro centric and more cleanly modula(1).  That way it would be 
easier to integrate existing simulators - have them use just the parts 
they need.

I've filed change-requests suggesting this.

enjoy,
Andrew

(1) I learnt two lessons, avoid `typedef struct' and avoid `macros' :-)


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