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/gdb_regex.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/gdb_regex.h')
0 files changed, 0 insertions, 0 deletions