Make tui_win_info::name pure virtual
authorTom Tromey <tom@tromey.com>
Thu, 2 Jul 2020 03:21:12 +0000 (21:21 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 2 Jul 2020 03:21:17 +0000 (21:21 -0600)
commit1cdf9e33eadd3bf091fe64ed30daa0263f736ea2
treea7ce87aafc883817384998cb5a7aec2888a8b4c9
parent32c1e2100975c073b3c1d9e2041de9f74b6e2049
Make tui_win_info::name pure virtual

It seemed cleaner to me for tui_win_info::name to be pure virtual.
This meant adding a name method to the locator window; but this too
seems like an improvement.

gdb/ChangeLog
2020-07-01  Tom Tromey  <tom@tromey.com>

* tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
* tui/tui-stack.h (struct tui_locator_window) <name>: New method.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-stack.h