From 5fc2d6aa0628864acc4ab2db4a224c580e15df4b Mon Sep 17 00:00:00 2001 From: Hannes Domani Date: Tue, 5 Jan 2021 16:56:01 +0100 Subject: [PATCH] Refresh regs window in display_registers_from Otherwise the register window is redrawn empty when scrolling or changing its size with winheight. gdb/ChangeLog: 2021-02-07 Hannes Domani * tui/tui-regs.c (tui_data_window::display_registers_from): Add refresh_window call. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-regs.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9e66fad0802..ce3ebfb6b30 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-02-07 Hannes Domani + + * tui/tui-regs.c (tui_data_window::display_registers_from): + Add refresh_window call. + 2021-02-07 Hannes Domani * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next. diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 538945b0b61..78cb2099746 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -306,6 +306,8 @@ tui_data_window::display_registers_from (int start_element_no) } cur_y++; /* Next row. */ } + + refresh_window (); } /* See tui-regs.h. */ -- 2.30.2