OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [tui/] [tui.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/* External/Public TUI Header File.
2
   Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3
   Contributed by Hewlett-Packard Company.
4
 
5
   This file is part of GDB.
6
 
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.
11
 
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.
16
 
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.  */
21
 
22
#ifndef TUI_H
23
#define TUI_H
24
 
25
#include <stdarg.h>
26
#include <string.h>
27
#include "ansidecl.h"
28
 
29
#if defined(reg)
30
#undef reg
31
#endif
32
#if defined(chtype)
33
#undef chtype
34
#endif
35
 
36
/* Opaque data type */
37
typedef char *Opaque;
38
typedef
39
Opaque (*OpaqueFuncPtr) (va_list);
40
     typedef char **OpaqueList;
41
     typedef OpaqueList OpaquePtr;
42
 
43
/* Generic function pointer */
44
     typedef void (*TuiVoidFuncPtr) (va_list);
45
     typedef int (*TuiIntFuncPtr) (va_list);
46
/*
47
   typedef Opaque (*TuiOpaqueFuncPtr) (va_list);
48
 */
49
     typedef OpaqueFuncPtr TuiOpaqueFuncPtr;
50
 
51
extern void strcat_to_buf (char *, int, const char *);
52
 
53
/* Types of error returns */
54
     typedef enum
55
       {
56
         TUI_SUCCESS,
57
         TUI_FAILURE
58
       }
59
TuiStatus, *TuiStatusPtr;
60
 
61
/* Types of windows */
62
     typedef enum
63
       {
64
         SRC_WIN = 0,
65
         DISASSEM_WIN,
66
         DATA_WIN,
67
         CMD_WIN,
68
         /* This must ALWAYS be AFTER the major windows last */
69
         MAX_MAJOR_WINDOWS,
70
         /* auxillary windows */
71
         LOCATOR_WIN,
72
         EXEC_INFO_WIN,
73
         DATA_ITEM_WIN,
74
         /* This must ALWAYS be next to last */
75
         MAX_WINDOWS,
76
         UNDEFINED_WIN          /* LAST */
77
       }
78
TuiWinType, *TuiWinTypePtr;
79
 
80
/* This is a point definition */
81
     typedef struct _TuiPoint
82
       {
83
         int x, y;
84
       }
85
TuiPoint, *TuiPointPtr;
86
 
87
/* GENERAL TUI FUNCTIONS */
88
/* tui.c */
89
extern void tuiFree (char *);
90
extern CORE_ADDR tuiGetLowDisassemblyAddress (CORE_ADDR, CORE_ADDR);
91
extern void tui_show_assembly (CORE_ADDR addr);
92
extern int tui_is_window_visible (TuiWinType type);
93
extern int tui_get_command_dimension (int *width, int *height);
94
 
95
/* Initialize readline and configure the keymap for the switching
96
   key shortcut.  */
97
extern void tui_initialize_readline (void);
98
 
99
/* Enter in the tui mode (curses).  */
100
extern void tui_enable (void);
101
 
102
/* Leave the tui mode.  */
103
extern void tui_disable (void);
104
 
105
enum tui_key_mode
106
{
107
  /* Plain command mode to enter gdb commands.  */
108
  tui_command_mode,
109
 
110
  /* SingleKey mode with some keys bound to gdb commands.  */
111
  tui_single_key_mode,
112
 
113
  /* Read/edit one command and return to SingleKey after it's processed.  */
114
  tui_one_command_mode
115
};
116
 
117
extern enum tui_key_mode tui_current_key_mode;
118
 
119
/* Change the TUI key mode by installing the appropriate readline keymap.  */
120
extern void tui_set_key_mode (enum tui_key_mode mode);
121
 
122
extern void tui_initialize_io (void);
123
 
124
extern void tui_initialize_readline (void);
125
 
126
extern int tui_active;
127
 
128
extern void tui_install_hooks (void);
129
extern void tui_remove_hooks (void);
130
 
131
extern void tui_show_source (const char *file, int line);
132
 
133
extern struct ui_out *tui_out_new (struct ui_file *stream);
134
 
135
/* tuiLayout.c */
136
extern TuiStatus tui_set_layout (const char *);
137
 
138
/* tuiSourceWin.c */
139
extern void tuiUpdateAllExecInfos (void);
140
 
141
#endif /* TUI_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.