aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-07-10 15:56:47 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-07-15 11:40:45 +0100
commit6c1e84f5c6f36263998ef1934bf3132c8cebe75e (patch)
treeac7dbf112836c1e22b1becdc40bcabc363eb8a7a /gdb/python
parent34f997c8f7475211920a8d41b6905a6da2462b28 (diff)
downloadgdb-6c1e84f5c6f36263998ef1934bf3132c8cebe75e.zip
gdb-6c1e84f5c6f36263998ef1934bf3132c8cebe75e.tar.gz
gdb-6c1e84f5c6f36263998ef1934bf3132c8cebe75e.tar.bz2
gdb/tui: make tui_win_info::title private
This commit builds on this earlier work: commit 9fe01a376b2fb096e4836e985ba316ce9dc02399 Date: Thu Jun 29 11:26:55 2023 -0600 Update TUI window title when changed and makes tui_win_info::title private, renaming to m_title at the same time. There's a new tui_win_info::title() member function to provide read-only access to the title. There should be no user visible changes after this commit. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-tui.c b/gdb/python/py-tui.c
index c52b04f..f47f227 100644
--- a/gdb/python/py-tui.c
+++ b/gdb/python/py-tui.c
@@ -509,7 +509,7 @@ gdbpy_tui_title (PyObject *self, void *closure)
{
gdbpy_tui_window *win = (gdbpy_tui_window *) self;
REQUIRE_WINDOW (win);
- return host_string_to_python_string (win->window->title.c_str ()).release ();
+ return host_string_to_python_string (win->window->title ().c_str ()).release ();
}
/* Set the title of the TUI window. */