mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
Don't call erase_data_content from tui_data_window::show_registers
tui_data_window::show_registers currently calls erase_data_content. However, I think it's better to have fewer calls to this (ideally just one would suffice). This refactors that function to remove this call. gdb/ChangeLog 2019-10-09 Tom Tromey <tom@tromey.com> * tui/tui-regs.c (tui_data_window::show_registers): Don't call erase_data_content.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2019-10-09 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* tui/tui-regs.c (tui_data_window::show_registers): Don't call
|
||||||
|
erase_data_content.
|
||||||
|
|
||||||
2019-10-09 Tom Tromey <tom@tromey.com>
|
2019-10-09 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* tui/tui-wingeneral.h (tui_delete_win): Don't declare.
|
* tui/tui-wingeneral.h (tui_delete_win): Don't declare.
|
||||||
|
@ -154,13 +154,14 @@ tui_data_window::show_registers (struct reggroup *group)
|
|||||||
for (auto &&data_item_win : m_regs_content)
|
for (auto &&data_item_win : m_regs_content)
|
||||||
data_item_win.highlight = false;
|
data_item_win.highlight = false;
|
||||||
m_current_group = group;
|
m_current_group = group;
|
||||||
rerender ();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_current_group = 0;
|
m_current_group = 0;
|
||||||
erase_data_content (_("[ Register Values Unavailable ]"));
|
m_regs_content.clear ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rerender ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user