Simplify source window clearing
authorTom Tromey <tom@tromey.com>
Sat, 29 Jun 2019 04:55:45 +0000 (22:55 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:19:09 +0000 (12:19 -0600)
commitf31ec9af48578adb0baf8db3e10da871d6ee3eca
tree2dcb164e0f0bfa99dbaff8c1ba1744e946ae7004
parentd1b6f1e5ebdd755274a77a31c4afa48969b73bee
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.
gdb/ChangeLog
gdb/tui/tui-source.c
gdb/tui/tui-source.h
gdb/tui/tui-winsource.c
This page took 0.035047 seconds and 4 git commands to generate.