This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [2/3] RFC: *stopped and CLI commands
On Tuesday 22 November 2011 20:05:17, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
> Pedro> Hmm, I should have read this one first. This means that with
> Pedro> patch 3 we'll print "Stopped due to ..." twice?
>
> Yes, I hadn't noticed that. Oops.
>
> However, we still need this call in order to get the reason= output in
> the MI notification when the command was a CLI command. That is, if you
> omit this call, you get:
...
> Note how the *stopped doesn't have a reason.
>
> The fix is to leave this call to bpstat_print, but to change the
> printing of "Stopped due to shared library event" to use ui_out_text
> rather than printf_filtered. This eliminates the double printing.
Yeah, makes sense.
--
Pedro Alves