]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/tui/tui-data.c
Update TUI window title when changed
[thirdparty/binutils-gdb.git] / gdb / tui / tui-data.c
index 0daed32b6e6d8c62e01cc90a31bdc3d698e9d1c7..abd2ec2b5fd0765afd44c2ac836ee8fb9d3e1e26 100644 (file)
@@ -152,6 +152,17 @@ tui_prev_win (struct tui_win_info *cur_win)
   return *iter;
 }
 
+/* See tui-data.h.  */
+
+void
+tui_win_info::set_title (const char *new_title)
+{
+  if (title != new_title)
+    {
+      title = new_title;
+      check_and_display_highlight_if_needed ();
+    }
+}
 
 void
 tui_win_info::rerender ()