tui_show_source does not need its parameters, so this removes them.
gdb/ChangeLog
2019-12-20 Tom Tromey <tom@tromey.com>
* tui/tui.h (tui_show_source): Remove parameters.
* tui/tui.c (tui_show_source): Remove parameters.
* tui/tui-out.c (tui_ui_out::do_field_string): Update.
Change-Id: I7cbcf20175b459c269549f1832d4fb844cc573db
+2019-12-20 Tom Tromey <tom@tromey.com>
+
+ * tui/tui.h (tui_show_source): Remove parameters.
+ * tui/tui.c (tui_show_source): Remove parameters.
+ * tui/tui-out.c (tui_ui_out::do_field_string): Update.
+
2019-12-20 Tom Tromey <tom@tromey.com>
* tui/tui.c (tui_show_source): Update.
if (fldname && m_line > 0 && strcmp (fldname, "fullname") == 0)
{
- tui_show_source (string, m_line);
+ tui_show_source ();
return;
}
#endif
void
-tui_show_source (const char *fullname, int line)
+tui_show_source ()
{
struct symtab_and_line cursal = get_current_source_symtab_and_line ();
/* Make sure that the source window is displayed. */
tui_add_win_to_layout (SRC_WIN);
- tui_update_source_windows_with_line (cursal.symtab, line);
+ tui_update_source_windows_with_line (cursal.symtab, cursal.line);
tui_update_locator_fullname (cursal.symtab);
}
extern int tui_active;
-extern void tui_show_source (const char *fullname, int line);
+extern void tui_show_source ();
#endif /* TUI_TUI_H */