mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
Remove some explicit re-rendering from the TUI
A couple of spots in tui-layout.c still call the show_source_content method. However, now that re-rendering is done by the resize method, these calls are no longer needed. gdb/ChangeLog 2019-09-20 Tom Tromey <tom@tromey.com> * tui/tui-layout.c (show_source_disasm_command) (show_source_or_disasm_and_command): Don't call show_source_content.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2019-09-20 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* tui/tui-layout.c (show_source_disasm_command)
|
||||||
|
(show_source_or_disasm_and_command): Don't call
|
||||||
|
show_source_content.
|
||||||
|
|
||||||
2019-09-20 Tom Tromey <tom@tromey.com>
|
2019-09-20 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
|
* tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
|
||||||
|
@ -505,7 +505,6 @@ show_source_disasm_command (void)
|
|||||||
struct tui_locator_window *locator = tui_locator_win_info_ptr ();
|
struct tui_locator_window *locator = tui_locator_win_info_ptr ();
|
||||||
gdb_assert (locator != nullptr);
|
gdb_assert (locator != nullptr);
|
||||||
|
|
||||||
TUI_SRC_WIN->show_source_content ();
|
|
||||||
if (TUI_DISASM_WIN == NULL)
|
if (TUI_DISASM_WIN == NULL)
|
||||||
tui_win_list[DISASSEM_WIN] = new tui_disasm_window ();
|
tui_win_list[DISASSEM_WIN] = new tui_disasm_window ();
|
||||||
TUI_DISASM_WIN->resize (asm_height,
|
TUI_DISASM_WIN->resize (asm_height,
|
||||||
@ -516,7 +515,6 @@ show_source_disasm_command (void)
|
|||||||
tui_term_width (),
|
tui_term_width (),
|
||||||
0,
|
0,
|
||||||
(src_height + asm_height) - 1);
|
(src_height + asm_height) - 1);
|
||||||
TUI_DISASM_WIN->show_source_content ();
|
|
||||||
|
|
||||||
if (TUI_CMD_WIN == NULL)
|
if (TUI_CMD_WIN == NULL)
|
||||||
tui_win_list[CMD_WIN] = new tui_cmd_window ();
|
tui_win_list[CMD_WIN] = new tui_cmd_window ();
|
||||||
@ -646,8 +644,6 @@ show_source_or_disasm_and_command (enum tui_layout_type layout_type)
|
|||||||
0,
|
0,
|
||||||
0);
|
0);
|
||||||
|
|
||||||
win_info->show_source_content ();
|
|
||||||
|
|
||||||
if (TUI_CMD_WIN == NULL)
|
if (TUI_CMD_WIN == NULL)
|
||||||
tui_win_list[CMD_WIN] = new tui_cmd_window ();
|
tui_win_list[CMD_WIN] = new tui_cmd_window ();
|
||||||
TUI_CMD_WIN->resize (cmd_height,
|
TUI_CMD_WIN->resize (cmd_height,
|
||||||
|
Reference in New Issue
Block a user