Move "fullname" to tui_source_window
authorTom Tromey <tom@tromey.com>
Tue, 23 Jul 2019 21:37:18 +0000 (15:37 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 20 Sep 2019 19:49:05 +0000 (13:49 -0600)
commit2d81b349982daae463bd29a87e962dde6d099392
tree4efcd03ec8aadf449b0efe2a1e5ad52def3021ad
parentf14bec587fd0b695bbb8dcfe92169b4dae76245d
Move "fullname" to tui_source_window

The "fullname" field in tui_source_window_base is only used by one
subclass.  This patch moves the field to that subclass, and changes it
to be a unique_xmalloc_ptr.

gdb/ChangeLog
2019-09-20  Tom Tromey  <tom@tromey.com>

* tui/tui-winsource.h (struct tui_source_window_base)
<~tui_source_window_base>: Don't declare.
<fullname>: Remove.
* tui/tui-winsource.c (~tui_source_window_base): Remove.
* tui/tui-source.h (struct tui_source_window) <fullname>: New
member.
* tui/tui-source.c (tui_source_window::set_contents): Update.
(tui_source_window::location_matches_p)
(tui_source_window::maybe_update): Update.
gdb/ChangeLog
gdb/tui/tui-source.c
gdb/tui/tui-source.h
gdb/tui/tui-winsource.c
gdb/tui/tui-winsource.h
This page took 0.025318 seconds and 4 git commands to generate.