diff options
author | Tom Tromey <tom@tromey.com> | 2019-11-12 16:30:24 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-12-20 09:15:49 -0700 |
commit | 5ebd54023c160383290f20f492ff871f64b7439a (patch) | |
tree | 4e3343e1d8cbb14f8a7c7f8600a7eb52d6781088 /gdb/tui/tui.c | |
parent | c1b167d76ec06c02f1aaa176c3dcfb1b4d8cee0c (diff) | |
download | gdb-5ebd54023c160383290f20f492ff871f64b7439a.zip gdb-5ebd54023c160383290f20f492ff871f64b7439a.tar.gz gdb-5ebd54023c160383290f20f492ff871f64b7439a.tar.bz2 |
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 <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
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r-- | gdb/tui/tui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 8bffb30..deb6bb2 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); } |