1 /* External/Public TUI Header File.
3 Copyright 1998, 1999, 2000, 2001, 2004 Free Software Foundation,
6 Contributed by Hewlett-Packard Company.
8 This file is part of GDB.
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place - Suite 330,
23 Boston, MA 02111-1307, USA. */
41 /* Opaque data type */
44 Opaque (*OpaqueFuncPtr
) (va_list);
45 typedef char **OpaqueList
;
46 typedef OpaqueList OpaquePtr
;
48 /* Generic function pointer */
49 typedef void (*TuiVoidFuncPtr
) (va_list);
50 typedef int (*TuiIntFuncPtr
) (va_list);
52 typedef Opaque (*TuiOpaqueFuncPtr) (va_list);
54 typedef OpaqueFuncPtr TuiOpaqueFuncPtr
;
56 extern void strcat_to_buf (char *, int, const char *);
58 /* Types of error returns */
59 typedef enum tui_status
64 TuiStatus
, *TuiStatusPtr
;
66 /* Types of windows */
73 /* This must ALWAYS be AFTER the major windows last */
75 /* auxillary windows */
79 /* This must ALWAYS be next to last */
81 UNDEFINED_WIN
/* LAST */
83 TuiWinType
, *TuiWinTypePtr
;
85 /* This is a point definition */
86 typedef struct _TuiPoint
90 TuiPoint
, *TuiPointPtr
;
92 /* GENERAL TUI FUNCTIONS */
94 extern void tuiFree (char *);
95 extern CORE_ADDR
tuiGetLowDisassemblyAddress (CORE_ADDR
, CORE_ADDR
);
96 extern void tui_show_assembly (CORE_ADDR addr
);
97 extern int tui_is_window_visible (TuiWinType type
);
98 extern int tui_get_command_dimension (int *width
, int *height
);
100 /* Initialize readline and configure the keymap for the switching
102 extern void tui_initialize_readline (void);
104 /* Enter in the tui mode (curses). */
105 extern void tui_enable (void);
107 /* Leave the tui mode. */
108 extern void tui_disable (void);
112 /* Plain command mode to enter gdb commands. */
115 /* SingleKey mode with some keys bound to gdb commands. */
118 /* Read/edit one command and return to SingleKey after it's processed. */
122 extern enum tui_key_mode tui_current_key_mode
;
124 /* Change the TUI key mode by installing the appropriate readline keymap. */
125 extern void tui_set_key_mode (enum tui_key_mode mode
);
127 extern void tui_initialize_io (void);
129 extern void tui_initialize_readline (void);
131 extern int tui_active
;
133 extern void tui_install_hooks (void);
134 extern void tui_remove_hooks (void);
136 extern void tui_show_source (const char *file
, int line
);
138 extern struct ui_out
*tui_out_new (struct ui_file
*stream
);
141 extern TuiStatus
tui_set_layout (const char *);
144 extern void tuiUpdateAllExecInfos (void);