Create tui_disasm_window
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 17:08:43 +0000 (11:08 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:27 +0000 (07:48 -0600)
commit5cf82909a7047cee471ee40cfe623250c258d76e
tree79f9a90053ccbe55a63b41cc93ccdd1f19aca95e
parentee1d42d6c1a05725868a8ea4855eaa81cbbda635
Create tui_disasm_window

This introduces the new tui_disasm_window class, which represents a
disassembly window.  It shares a lot of behavior with the source
window, so a new tui_source_window_base class is also created.

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

* tui/tui-data.h (struct tui_source_window_base): New struct.
(struct tui_source_window): Derive from tui_source_window_base.
(struct tui_disasm_window): New struct.
* tui/tui-data.c (tui_source_window_base::clear_detail): Rename
from tui_source_window::clear_detail.
(tui_source_window_base): Rename from tui_source_window.
(~tui_source_window_base): Rename from ~tui_source_window.
(tui_alloc_win_info): Create a tui_disasm_window.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h