Remove some uses of TUI_WIN_SRC
authorTom Tromey <tom@tromey.com>
Mon, 24 Jun 2019 02:57:09 +0000 (20:57 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:18:52 +0000 (12:18 -0600)
commit5813316fa4aeaf52f374c20c7fdb9747b88fa8ca
treea4c8acf44eeffd116a679f7c78b6dd33f9988f77
parent00e264e7626260a6df6b5a0aa7ee25215ea93f9c
Remove some uses of TUI_WIN_SRC

This adds a 'win_info' parameter to a couple of functions.  This
reduces the number of references to the TUI_WIN_SRC global.

gdb/ChangeLog
2019-07-17  Tom Tromey  <tom@tromey.com>

* tui/tui-winsource.c (tui_update_source_window_as_is)
(tui_update_source_windows_with_addr): Update.
* tui/tui-source.h (tui_set_source_content)
(tui_show_symtab_source): Add "win_info" parameter.
* tui/tui-source.c (tui_set_source_content): Add "win_info"
parameter.
(tui_show_symtab_source): Likewise.
gdb/ChangeLog
gdb/tui/tui-source.c
gdb/tui/tui-source.h
gdb/tui/tui-winsource.c