From: Tom Tromey Date: Tue, 12 Nov 2019 23:30:24 +0000 (-0700) Subject: Remove parameters from tui_show_source X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=5ebd54023c160383290f20f492ff871f64b7439a;p=deliverable%2Fbinutils-gdb.git Remove parameters from tui_show_source tui_show_source does not need its parameters, so this removes them. gdb/ChangeLog 2019-12-20 Tom Tromey * 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 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5a79f6ae32..3815b59793 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-12-20 Tom Tromey + + * 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 * tui/tui.c (tui_show_source): Update. diff --git a/gdb/tui/tui-out.c b/gdb/tui/tui-out.c index 0d3f3be988..95543ff06a 100644 --- a/gdb/tui/tui-out.c +++ b/gdb/tui/tui-out.c @@ -61,7 +61,7 @@ tui_ui_out::do_field_string (int fldno, int width, ui_align align, if (fldname && m_line > 0 && strcmp (fldname, "fullname") == 0) { - tui_show_source (string, m_line); + tui_show_source (); return; } diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 8bffb30b44..deb6bb27e5 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -627,14 +627,14 @@ tui_reset (void) #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); } diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h index dac410fcfa..0ac1fb4a9c 100644 --- a/gdb/tui/tui.h +++ b/gdb/tui/tui.h @@ -83,6 +83,6 @@ extern void tui_set_key_mode (enum tui_key_mode mode); extern int tui_active; -extern void tui_show_source (const char *fullname, int line); +extern void tui_show_source (); #endif /* TUI_TUI_H */