diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-28 22:55:45 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-07-17 12:19:09 -0600 |
commit | f31ec9af48578adb0baf8db3e10da871d6ee3eca (patch) | |
tree | 2dcb164e0f0bfa99dbaff8c1ba1744e946ae7004 /gdb/tui/tui-source.h | |
parent | d1b6f1e5ebdd755274a77a31c4afa48969b73bee (diff) | |
download | gdb-f31ec9af48578adb0baf8db3e10da871d6ee3eca.zip gdb-f31ec9af48578adb0baf8db3e10da871d6ee3eca.tar.gz gdb-f31ec9af48578adb0baf8db3e10da871d6ee3eca.tar.bz2 |
Simplify source window clearing
When a TUI source window is empty, it displays a "No Source Available"
message. The function tui_set_source_content_nil also made sure to
put this message into the window's "content" field.
However, I believe this isn't really necessary. Instead, it's simpler
to just empty the contents and let curses handle the refreshing.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.c (tui_erase_source_content): Clear the
window's contents.
* tui/tui-source.h (tui_set_source_content_nil): Don't declare.
* tui/tui-source.c (tui_set_source_content_nil): Remove.
Diffstat (limited to 'gdb/tui/tui-source.h')
-rw-r--r-- | gdb/tui/tui-source.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/tui/tui-source.h b/gdb/tui/tui-source.h index e4b2313..fc129ab 100644 --- a/gdb/tui/tui-source.h +++ b/gdb/tui/tui-source.h @@ -27,9 +27,6 @@ struct symtab; struct tui_win_info; -extern void tui_set_source_content_nil (struct tui_source_window_base *, - const char *); - extern enum tui_status tui_set_source_content (tui_source_window_base *, struct symtab *, int, int); |