Change tui_addr_is_displayed into a method
authorTom Tromey <tom@tromey.com>
Sat, 6 Jul 2019 21:06:47 +0000 (15:06 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 15 Aug 2019 18:29:28 +0000 (12:29 -0600)
commit088f37dd90eecb647347c1aa53d36b3f5be64b21
tree4453f8eb6169fd83c92be094b406903830a87ef8
parenta54700c6c45ea424b668f2201ef14906f2052412
Change tui_addr_is_displayed into a method

This changes tui_addr_is_displayed to be a method on
tui_disasm_window, now that it is obvious that it can only be called
for this type.

gdb/ChangeLog
2019-08-15  Tom Tromey  <tom@tromey.com>

* tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
* tui/tui-winsource.c (tui_addr_is_displayed): Move to
tui-disasm.c.
* tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
Declare.
* tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
method.
(tui_disasm_window::maybe_update): Update.
gdb/ChangeLog
gdb/tui/tui-disasm.c
gdb/tui/tui-disasm.h
gdb/tui/tui-winsource.c
gdb/tui/tui-winsource.h