Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC] Fix MI timings
@ 2009-03-09 21:10 Vladimir Prus
  2009-03-09 21:15 ` Vladimir Prus
  0 siblings, 1 reply; 10+ messages in thread
From: Vladimir Prus @ 2009-03-09 21:10 UTC (permalink / raw)
  To: gdb-patches, Nick Roberts


I've noticed that -enable-timings produces broken output for all
commands that resume target. First, we output *stopped.
And them on a separate line we print the timing, like this:

	,time={wallclock="0.32046",user="0.32000",system="0.00000"} (gdb)

This happens because mi_on_normal_stop does print newline, and then
mi_execute_async_cli_command does timings separately. This patch:

1. Make mi_on_normal_stop emit the timing info
2. Stop mi_execute_async_cli_command from doing so
3. Makes captured_mi_execute_command report timing both to MI
and CLI code paths.

I'll commit this in a few days if there are no objections.

- Volodya


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-03-17  7:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-09 21:10 [RFC] Fix MI timings Vladimir Prus
2009-03-09 21:15 ` Vladimir Prus
2009-03-09 21:22   ` Daniel Jacobowitz
2009-03-09 21:32     ` Vladimir Prus
2009-03-09 21:36       ` Pedro Alves
2009-03-09 22:07         ` Pedro Alves
2009-03-17  5:27         ` Pedro Alves
2009-03-17  7:26           ` Vladimir Prus
2009-03-17  8:03             ` Vladimir Prus
2009-03-13  7:59       ` Vladimir Prus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox