aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-winsource.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-03-17 18:00:34 +0200
committerEli Zaretskii <eliz@gnu.org>2019-03-17 18:00:34 +0200
commitf7f0a12390fc514a5b7b38d1b23397d87532ce05 (patch)
tree4347ee61a8e6d908ed379127306d71a3ac3595c3 /gdb/tui/tui-winsource.c
parentd6dcc55d804dc23197c8cf4f193bc39838c6a052 (diff)
downloadgdb-f7f0a12390fc514a5b7b38d1b23397d87532ce05.zip
gdb-f7f0a12390fc514a5b7b38d1b23397d87532ce05.tar.gz
gdb-f7f0a12390fc514a5b7b38d1b23397d87532ce05.tar.bz2
Fix redisplay of the current line in GDB TUI mode
Without this change, when the current line is longer than the source window width, redisplaying that line overwrites the window frame and also portions of the next line. gdb/ChangeLog: 2019-03-17 Eli Zaretskii <eliz@gnu.org> * tui/tui-winsource.c (tui_set_is_exec_point_at): Call tui_refill_source_window instead of tui_refresh_win, to update the current execution line. This fixes redisplay of the current line when stepping through very long lines with "next" or "step".
Diffstat (limited to 'gdb/tui/tui-winsource.c')
-rw-r--r--gdb/tui/tui-winsource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c
index a451d13..9925b79 100644
--- a/gdb/tui/tui-winsource.c
+++ b/gdb/tui/tui-winsource.c
@@ -399,7 +399,7 @@ tui_set_is_exec_point_at (struct tui_line_or_address l,
i++;
}
if (changed)
- tui_refresh_win (&win_info->generic);
+ tui_refill_source_window (win_info);
}
/* Update the execution windows to show the active breakpoints.