Don't call tui_show_source from tui_ui_out
authorTom Tromey <tom@tromey.com>
Wed, 13 Nov 2019 23:47:58 +0000 (16:47 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 20 Dec 2019 16:15:59 +0000 (09:15 -0700)
commitb4b49dcbff6b437fa8b4e2fc0c3f27b457f11310
treeeae7d652490d9893ec5b0642c0e30a910703541a
parenteb390f499b820b74e0ab07162b0b8bd12da6f35a
Don't call tui_show_source from tui_ui_out

This removes the call to tui_show_source from tui_ui_out.  This always
seemed like a hack, and now that the TUI is using the proper
observers, it seems not to be needed.

The rest of the logic remains, unfortunately, because it is needed to
suppress some gdb output in the TUI case.  We could probably find a
nicer way to do this (maybe a ui_out_flag), but I haven't attempted
this.

This was the last caller of tui_show_source, so this is removed as
well.

gdb/ChangeLog
2019-12-20  Tom Tromey  <tom@tromey.com>

* tui/tui.c (tui_show_source): Remove.
* tui/tui.h (tui_show_source): Don't declare.
* tui/tui-out.c (tui_ui_out::do_field_string): Don't call
tui_show_source.

Change-Id: Id71098e597ee4ebfef0429562baa45f537bd2c2b
gdb/ChangeLog
gdb/tui/tui-out.c
gdb/tui/tui.c
gdb/tui/tui.h
This page took 0.027546 seconds and 4 git commands to generate.