]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix redisplay of the current line in GDB TUI mode
authorEli Zaretskii <eliz@gnu.org>
Sun, 17 Mar 2019 16:00:34 +0000 (18:00 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 17 Mar 2019 16:04:05 +0000 (18:04 +0200)
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)

gdb/ChangeLog
gdb/tui/tui-winsource.c

index 5db27999646984c30a13531635a8d56870680618..b195fa4415d8a7a62d5f37cb20e1855fdca4f9b0 100644 (file)
@@ -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
index a451d13f44bf8e180fc57cde677ac27da9d02e3b..9925b79dff11fced0f606daa2514e9dbd0626ad0 100644 (file)
@@ -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.