From 2d81b349982daae463bd29a87e962dde6d099392 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 23 Jul 2019 15:37:18 -0600 Subject: 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 * tui/tui-winsource.h (struct tui_source_window_base) <~tui_source_window_base>: Don't declare. : Remove. * tui/tui-winsource.c (~tui_source_window_base): Remove. * tui/tui-source.h (struct tui_source_window) : 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/tui/tui-source.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/tui/tui-source.h') diff --git a/gdb/tui/tui-source.h b/gdb/tui/tui-source.h index a700212..30728e4 100644 --- a/gdb/tui/tui-source.h +++ b/gdb/tui/tui-source.h @@ -76,6 +76,9 @@ private: in the current source window. */ bool line_is_displayed (int line) const; + /* It is the resolved form as returned by symtab_to_fullname. */ + gdb::unique_xmalloc_ptr fullname; + /* A token used to register and unregister an observer. */ gdb::observers::token m_observable; }; -- cgit v1.1