Change tui_update_locator_fullname to take a symtab
[deliverable/binutils-gdb.git] / gdb / tui / tui-stack.c
index 078f81992aba7ab46b7afe5247dd706f6e17c450..7803b9538ccc3c4be240b5b735698ac400a5dcad 100644 (file)
@@ -288,10 +288,15 @@ tui_locator_window::set_locator_info (struct gdbarch *gdbarch_in,
 
 /* Update only the full_name portion of the locator.  */
 void
-tui_update_locator_fullname (const char *fullname)
+tui_update_locator_fullname (struct symtab *symtab)
 {
   struct tui_locator_window *locator = tui_locator_win_info_ptr ();
 
+  const char *fullname;
+  if (symtab != nullptr)
+    fullname = symtab_to_fullname (symtab);
+  else
+    fullname = "??";
   locator->set_locator_fullname (fullname);
 }
 
This page took 0.023307 seconds and 4 git commands to generate.