diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-11 20:00:07 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-16 11:28:34 -0600 |
commit | bb01dbfc041dccab2f2a2818068158f61b4c0fe2 (patch) | |
tree | 01be029c4f8b19808e0445c24ca961e0fb987ced /gdb/tui/tui-winsource.c | |
parent | 81c82c4b9005acf7865d8a19ee651968e059a848 (diff) | |
download | gdb-bb01dbfc041dccab2f2a2818068158f61b4c0fe2.zip gdb-bb01dbfc041dccab2f2a2818068158f61b4c0fe2.tar.gz gdb-bb01dbfc041dccab2f2a2818068158f61b4c0fe2.tar.bz2 |
Change tui_show_symtab_source to be a method
This changes tui_show_symtab_source to be a method on
tui_source_window.
gdb/ChangeLog
2019-08-16 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.c (tui_update_source_windows_with_addr)
(tui_update_source_windows_with_line): Update.
* tui/tui-source.h (struct tui_source_window)
<show_symtab_source>: Declare.
(tui_show_symtab_source): Don't declare.
* tui/tui-source.c (tui_show_symtab_source): Rename from
tui_show_symtab_source.
Diffstat (limited to 'gdb/tui/tui-winsource.c')
-rw-r--r-- | gdb/tui/tui-winsource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 3a678f2..43e8a28 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -139,7 +139,7 @@ tui_update_source_windows_with_addr (struct gdbarch *gdbarch, CORE_ADDR addr) sal = find_pc_line (addr, 0); l.loa = LOA_LINE; l.u.line_no = sal.line; - tui_show_symtab_source (TUI_SRC_WIN, gdbarch, sal.symtab, l); + TUI_SRC_WIN->show_symtab_source (gdbarch, sal.symtab, l); break; } } @@ -174,7 +174,7 @@ tui_update_source_windows_with_line (struct symtab *s, int line) default: l.loa = LOA_LINE; l.u.line_no = line; - tui_show_symtab_source (TUI_SRC_WIN, gdbarch, s, l); + TUI_SRC_WIN->show_symtab_source (gdbarch, s, l); if (tui_current_layout () == SRC_DISASSEM_COMMAND) { find_line_pc (s, line, &pc); |