1 /* External/Public TUI Header File.
2 Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Hewlett-Packard Company.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
36 /* Opaque data type */
39 Opaque (*OpaqueFuncPtr
) (va_list);
40 typedef char **OpaqueList
;
41 typedef OpaqueList OpaquePtr
;
43 /* Generic function pointer */
44 typedef void (*TuiVoidFuncPtr
) (va_list);
45 typedef int (*TuiIntFuncPtr
) (va_list);
47 typedef Opaque (*TuiOpaqueFuncPtr) (va_list);
49 typedef OpaqueFuncPtr TuiOpaqueFuncPtr
;
51 extern Opaque
vcatch_errors (OpaqueFuncPtr
, ...);
52 extern Opaque
va_catch_errors (OpaqueFuncPtr
, va_list);
54 extern void strcat_to_buf (char *, int, char *);
55 extern void strcat_to_buf_with_fmt (char *, int, char *, ...);
57 /* Types of error returns */
63 TuiStatus
, *TuiStatusPtr
;
65 /* Types of windows */
72 /* This must ALWAYS be AFTER the major windows last */
74 /* auxillary windows */
78 /* This must ALWAYS be next to last */
80 UNDEFINED_WIN
/* LAST */
82 TuiWinType
, *TuiWinTypePtr
;
84 /* This is a point definition */
85 typedef struct _TuiPoint
89 TuiPoint
, *TuiPointPtr
;
91 /* GENERAL TUI FUNCTIONS */
93 extern void tuiFree (char *);
94 extern CORE_ADDR
tuiGetLowDisassemblyAddress (CORE_ADDR
, CORE_ADDR
);
95 extern void tui_show_assembly (CORE_ADDR addr
);
96 extern int tui_is_window_visible (TuiWinType type
);
97 extern int tui_get_command_dimension (int *width
, int *height
);
99 /* Initialize readline and configure the keymap for the switching
101 extern void tui_initialize_readline (void);
103 /* Enter in the tui mode (curses). */
104 extern void tui_enable (void);
106 /* Leave the tui mode. */
107 extern void tui_disable (void);
109 extern void tui_initialize_io (void);
111 extern void tui_initialize_readline (void);
113 extern int tui_active
;
115 extern void tui_install_hooks (void);
116 extern void tui_remove_hooks (void);
118 extern void tui_show_source (const char *file
, int line
);
120 extern struct ui_out
*tui_out_new (struct ui_file
*stream
);
123 extern void tui_vCheckDataValues (va_list);
126 extern void tui_vStartNewLines (va_list);
129 extern TuiStatus
tui_set_layout (const char *);
132 extern void tuiDisplayMainFunction (void);
133 extern void tuiUpdateAllExecInfos (void);
134 extern void tuiUpdateOnEnd (void);
135 extern void tui_vAllSetHasBreakAt (va_list);
136 extern void tui_vUpdateSourceWindowsWithAddr (va_list);
139 extern void tui_vShowFrameInfo (va_list);
140 extern void tui_vUpdateLocatorFilename (va_list);