[SIM] Change sim_trace() iface, add ``-o'' to run.c

Andrew Cagney ac131313@cygnus.com
Sat Apr 1 00:00:00 GMT 2000


Hello,

I've encountered the situation where for the d10v simulator needs to
exhibit both user and operating environment behaviors (1).  To allow
this, I'd like to propose the following changes to the sim sub
directory:

	o	run.c

		Add the option ``-o'' for operating
		(system) environment.  When selected
		operating environment is provided.

		Change the main loop so that it
		only loops when ``operating_p''.

	o	sim/*/* + include/remote-sim.h

		Change the sim_trace() interface
		so that it just sets the trace
		option and doesn't try to run
		the simulator.

		run.c being updated accordingly.
		This change is needed as, currently,
		the old simulators are confused as
		to what exactly sim_trace() should
		do.

		Trying to introduce a ``-o'' option
		would result in inconsistent behavour:
		``-t -o'' would be different to ``-o''
		
thoughts?

	Andrew

--

(1) For the curious, operating environment provides the raw machine -
traps and interrupts are delivered.  User environment is more like unix
where a trap halts the program.


More information about the Gdb-patches mailing list