This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-8.3-branch] Fix redisplay of the current line in GDB TUI mode
- From: Eli Zaretskii <eliz at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 17 Mar 2019 16:04:41 -0000
- Subject: [binutils-gdb/gdb-8.3-branch] Fix redisplay of the current line in GDB TUI mode
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=89ab4b06975ffc59c8a70d0cee7608ed26c836ab
commit 89ab4b06975ffc59c8a70d0cee7608ed26c836ab
Author: Eli Zaretskii <eliz@gnu.org>
Date: Sun Mar 17 18:00:34 2019 +0200
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".
(cherry picked from commit f7f0a12390fc514a5b7b38d1b23397d87532ce05)
Diff:
---
gdb/ChangeLog | 7 +++++++
gdb/tui/tui-winsource.c | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5db2799..b195fa4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+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 the code with "next" or "step".
+
2019-03-16 Eli Zaretskii <eliz@gnu.org>
* source-cache.c (source_cache::get_source_lines): Call
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.