diff options
author | Patrick Palka <patrick@parcs.ath.cx> | 2015-08-21 12:04:25 -0400 |
---|---|---|
committer | Patrick Palka <patrick@parcs.ath.cx> | 2015-08-21 16:17:52 -0400 |
commit | 7a8bcb88e77380fe9672b4f10777cc9e48011dd4 (patch) | |
tree | c293e06ce7f247a0fee1b5fd90ddf8ccc9ac26da /gdb/top.c | |
parent | 465a859e0a991d3bfe8a9ee65a29a223c42e2ce7 (diff) | |
download | gdb-7a8bcb88e77380fe9672b4f10777cc9e48011dd4.zip gdb-7a8bcb88e77380fe9672b4f10777cc9e48011dd4.tar.gz gdb-7a8bcb88e77380fe9672b4f10777cc9e48011dd4.tar.bz2 |
Use tui_putc to output newline entered by the user
This is necessary to make sure that start_line is updated after a
command has been entered. Usually, start_line gets updated anyway
because most commands output text, and outputting text is done through
the function tui_puts, which updates start_line. However if a command
does not output text, then tui_puts will not get called and start_line
will not get updated in time for the next prompt to be displayed.
One can observe this bug by executing the command "delete" within TUI.
After executing, the prompt line
(gdb) delete
gets overwritten by the next prompt. With this patch, the prompt line
gets preserved.
gdb/ChangeLog:
* tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
emit the newline.
Diffstat (limited to 'gdb/top.c')
0 files changed, 0 insertions, 0 deletions