* tui/tui-regs.c (tui_show_registers): Make sure the TUI is active

and switch the layout to force a display of register window.
This commit is contained in:
Stephane Carrez 2004-03-28 10:18:07 +00:00
parent 3c9a4beb80
commit 0bfbda3b65
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
* tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
and switch the layout to force a display of register window.
2004-02-26 J. Brobecker <brobecker@gnat.com>
* amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part

View File

@ -148,8 +148,17 @@ void
tui_show_registers (struct reggroup *group)
{
enum tui_status ret = TUI_FAILURE;
struct tui_data_info *display_info = &TUI_DATA_WIN->detail.data_display_info;
struct tui_data_info *display_info;
/* Make sure the curses mode is enabled. */
tui_enable ();
/* Make sure the register window is visible. If not, select an
appropriate layout. */
if (TUI_DATA_WIN == NULL || !TUI_DATA_WIN->generic.is_visible)
tui_set_layout_for_display_command (DATA_NAME);
display_info = &TUI_DATA_WIN->detail.data_display_info;
if (group == 0)
group = general_reggroup;