Add support for target switches in simulator
Andrew Cagney
ac131313@cygnus.com
Fri May 17 10:17:00 GMT 2002
> 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' :-)
More information about the Gdb-patches
mailing list