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:00:34 +0000 (18:00 +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".

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

index bf0031230c9e1a97f71d800b5e48503f4e25bbfa..517d666c923b135792fe2ed7461161c340454ad5 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.
This page took 0.028465 seconds and 4 git commands to generate.