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



nickc wrote:

> [...]
> > 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).

I don't understand.  There is no sim-common.[ch] file, and the new
module you are proposing is to go under sim/common.  It's as if you
want to add a new, alternative option handling module under
sim/common.  Can you describe what difficulties you encountered, when
trying to use the sim-options code as is (assuming you tried)?


>   * It isolates all of the target specific code in the target specific
>     subdirectories, and just has a very small intrusion into the
>     generic code.  (Unlike say the SIM_H8300 option).

The sim-options code can do this already, when used correctly.
Look at calls to sim_add_option_table in d30v, fr30, mips. m32r,
m68hc11, mn10300, ... :-)


- FChE


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