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]

Re: nrun.c patch


Stephane Carrez writes:
 >  - several simulator (h8300, h8500, mcore, d10v, sh, w65) are printing statistics
 >    about insn or cpu cycles executed (and I'm doing the same for 68hc11). 
 >    None of them are checking flags as you suggest.
 > 
 > May be the way things were intended to work are not correct and we can fix that.
 > Now, I just want/need a common way to enable/disable the simulator statistics.

Look at it this way.

The minute a simulator has more than one thing the user may choose
to ask the simulator to print out, sim_info has to test which one the
user asked for (which can be none, any combination of, or all).
It's simpler and cleaner to just always call sim_info,
and let sim_info test for what to print / not print.

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