Introduce tui_gen_win_info::name method
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 22:35:31 +0000 (16:35 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:38 +0000 (07:48 -0600)
commit152f3f4b3342ae16df5ae0640896b8cea008c893
treeb057f41be67f8879cf0c2664098a2192e543925b
parentbe4da58857ee4a26b7e58893211ea4f54922e8fd
Introduce tui_gen_win_info::name method

This removes tui_win_name and replaces it with a method on
tui_gen_win_info, removing another spot that switched on window type.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-win.c (window_name_completer, tui_set_focus)
(tui_all_windows_info): Use name method.
* tui/tui-data.h (struct tui_gen_win_info)
(struct tui_source_window, struct tui_disasm_window)
(struct tui_data_window, struct tui_cmd_window) <name>: New
method.
(tui_win_name): Don't declare.
* tui/tui-data.c (tui_partial_win_by_name): Use name method.
(tui_win_name): Remove.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-win.c