diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-11 18:19:28 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-16 11:28:34 -0600 |
commit | 20149b6b207ac8c2bcde6f272607109f566168a9 (patch) | |
tree | 75c6bfb31f83b0837102ca8613e9559d4e3cdae1 /gdb/tui/tui-source.h | |
parent | 2d83e710a14c62cb6a9501c84fc46062f817428d (diff) | |
download | gdb-20149b6b207ac8c2bcde6f272607109f566168a9.zip gdb-20149b6b207ac8c2bcde6f272607109f566168a9.tar.gz gdb-20149b6b207ac8c2bcde6f272607109f566168a9.tar.bz2 |
Remove "noerror" parameter from some TUI functions
A few TUI functions take a "noerror" parameter. This is only checked
in one spot: in tui_set_source_content, if noerror is false, and if an
error occurs, then the function will call print_sys_errmsg.
This seems misguided to me, so this patch removes that code and this
parameter.
gdb/ChangeLog
2019-08-16 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (tui_update_source_window)
(tui_update_source_window_as_is): Remove "noerror" parameter.
* tui/tui-winsource.c (tui_update_source_window)
(tui_update_source_window_as_is): Remove "noerror" parameter.
(tui_update_source_windows_with_addr)
(tui_update_source_windows_with_line)
(tui_source_window_base::rerender)
(tui_source_window_base::refill): Update.
* tui/tui-source.h (tui_set_source_content)
(tui_show_symtab_source): Remove "noerror" parameter.
* tui/tui-source.c (tui_set_source_content): Remove "noerror"
parameter.
(tui_show_symtab_source): Likewise.
(tui_source_window::maybe_update): Update.
* tui/tui-disasm.c (tui_show_disassem)
(tui_show_disassem_and_update_source)
(tui_disasm_window::do_scroll_vertical)
(tui_disasm_window::maybe_update): Update.
Diffstat (limited to 'gdb/tui/tui-source.h')
-rw-r--r-- | gdb/tui/tui-source.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/tui/tui-source.h b/gdb/tui/tui-source.h index 2926777..1d7af2a 100644 --- a/gdb/tui/tui-source.h +++ b/gdb/tui/tui-source.h @@ -74,10 +74,9 @@ private: extern enum tui_status tui_set_source_content (tui_source_window_base *, struct symtab *, - int, int); + int); extern void tui_show_symtab_source (tui_source_window_base *, struct gdbarch *, struct symtab *, - struct tui_line_or_address, - int); + struct tui_line_or_address); #endif /* TUI_TUI_SOURCE_H */ |