This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 09/15] Don't call tui_refresh_all from show_layout
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Tue, 20 Aug 2019 20:25:29 -0600
- Subject: [PATCH 09/15] Don't call tui_refresh_all from show_layout
- References: <20190821022535.9762-1-tom@tromey.com>
show_layout calls tui_refresh_all in one case. However, it doesn't
need to any more, because the resize method on each window will also
update the contents.
gdb/ChangeLog
2019-08-20 Tom Tromey <tom@tromey.com>
* tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
---
gdb/ChangeLog | 4 ++++
gdb/tui/tui-layout.c | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 7ec704e52f0..df7056ae97b 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -82,7 +82,6 @@ show_layout (enum tui_layout_type layout)
case SRC_DATA_COMMAND:
case DISASSEM_DATA_COMMAND:
show_data (layout);
- tui_refresh_all ();
break;
/* Now show the new layout. */
case SRC_COMMAND:
--
2.17.2