This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: nrun.c patch
- To: Stephane Carrez <Stephane dot Carrez at worldnet dot fr>
- Subject: Re: nrun.c patch
- From: Doug Evans <dje at transmeta dot com>
- Date: Sun, 10 Sep 2000 17:01:59 -0700 (PDT)
- Cc: cagney at redhat dot com, gdb-patches at sourceware dot cygnus dot com
- References: <200009100427.VAA27516@casey.transmeta.com><39BBADC1.94352650@worldnet.fr><14779.49324.843786.880750@casey.transmeta.com><39BBFE2C.28B6D825@worldnet.fr>
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.