This is the mail archive of the gdb-patches@sourceware.cygnus.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]

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


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.

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