aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-02-14 13:58:06 +0000
committerAndrew Cagney <cagney@redhat.com>2003-02-14 13:58:06 +0000
commit021e7609055e94c3b2f0ac757c9640d393ed2000 (patch)
treea992b5a8ac54ade41fcca5b86f1e9622daa1d385 /gdb/tui/tui.c
parented781d5d99c9e91d230e60c75ac10d3ac14f7736 (diff)
downloadgdb-021e7609055e94c3b2f0ac757c9640d393ed2000.zip
gdb-021e7609055e94c3b2f0ac757c9640d393ed2000.tar.gz
gdb-021e7609055e94c3b2f0ac757c9640d393ed2000.tar.bz2
2003-02-14 Andrew Cagney <ac131313@redhat.com>
* main.c (tui_version): Delete variable. (captured_main): When --tui, set interpreter_p to "tui" instead of enabling tui_version. * printcmd.c (display_command) [TUI]: Test tui_active instead of tui_version. * cli/cli-decode.c (lookup_cmd_composition): Ditto. * cli/cli-cmds.c (disassemble_command): Ditto. * defs.h (tui_version): Delete declaration. * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c". (tui-interp.o): Add rules. (SUBDIR_TUI_OBS): Add "tui-interp.o". Index: tui/ChangeLog 2003-02-14 Andrew Cagney <ac131313@redhat.com> * tui.c (tui_enable, tui_disable): Don't modify tui_version. (tui_is_window_visible, tui_get_command_dimension): Test tui_active instead of tui_version. * tuiData.h (tui_version): Delete declaration. * tui-hooks.c (tui_init_hook, tui_event_loop): Delete function, moved to "tui-interp.c". (tui_exit, tui_command_loop): Ditto. (_initialize_tui): Don't initialize init_ui_hook. Initialize target_new_objfile_hook. * tui-interp.c: New file.
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r--gdb/tui/tui.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index f0e039a..517cf46 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -393,7 +393,6 @@ tui_enable (void)
tui_setup_io (1);
- tui_version = 1;
tui_active = 1;
if (deprecated_selected_frame)
tuiShowFrameInfo (deprecated_selected_frame);
@@ -435,7 +434,6 @@ tui_disable (void)
/* Update gdb's knowledge of its terminal. */
target_terminal_save_ours ();
- tui_version = 0;
tui_active = 0;
tui_update_gdb_sizes ();
}
@@ -563,7 +561,7 @@ tui_show_assembly (CORE_ADDR addr)
int
tui_is_window_visible (TuiWinType type)
{
- if (tui_version == 0)
+ if (tui_active == 0)
return 0;
if (winList[type] == 0)
@@ -575,7 +573,7 @@ tui_is_window_visible (TuiWinType type)
int
tui_get_command_dimension (int *width, int *height)
{
- if (!tui_version || !m_winPtrNotNull (cmdWin))
+ if (!tui_active || !m_winPtrNotNull (cmdWin))
{
return 0;
}