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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [interps.h] - Blame information for rev 866

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* Manages interpreters for GDB, the GNU debugger.
2
 
3
   Copyright (C) 2000, 2002, 2003, 2007, 2008 Free Software Foundation, Inc.
4
 
5
   Written by Jim Ingham <jingham@apple.com> of Apple Computer, Inc.
6
 
7
   This file is part of GDB.
8
 
9
   This program is free software; you can redistribute it and/or modify
10
   it under the terms of the GNU General Public License as published by
11
   the Free Software Foundation; either version 3 of the License, or
12
   (at your option) any later version.
13
 
14
   This program is distributed in the hope that it will be useful,
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
   GNU General Public License for more details.
18
 
19
   You should have received a copy of the GNU General Public License
20
   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
21
 
22
#ifndef INTERPS_H
23
#define INTERPS_H
24
 
25
#include "exceptions.h"
26
 
27
struct ui_out;
28
struct interp;
29
 
30
extern int interp_resume (struct interp *interp);
31
extern int interp_suspend (struct interp *interp);
32
extern int interp_prompt_p (struct interp *interp);
33
extern int interp_exec_p (struct interp *interp);
34
extern struct gdb_exception interp_exec (struct interp *interp,
35
                                         const char *command);
36
extern int interp_quiet_p (struct interp *interp);
37
 
38
typedef void *(interp_init_ftype) (void);
39
typedef int (interp_resume_ftype) (void *data);
40
typedef int (interp_suspend_ftype) (void *data);
41
typedef int (interp_prompt_p_ftype) (void *data);
42
typedef struct gdb_exception (interp_exec_ftype) (void *data,
43
                                                  const char *command);
44
typedef void (interp_command_loop_ftype) (void *data);
45
 
46
struct interp_procs
47
{
48
  interp_init_ftype *init_proc;
49
  interp_resume_ftype *resume_proc;
50
  interp_suspend_ftype *suspend_proc;
51
  interp_exec_ftype *exec_proc;
52
  interp_prompt_p_ftype *prompt_proc_p;
53
  interp_command_loop_ftype *command_loop_proc;
54
};
55
 
56
extern struct interp *interp_new (const char *name, void *data,
57
                                  struct ui_out *uiout,
58
                                  const struct interp_procs *procs);
59
extern void interp_add (struct interp *interp);
60
extern int interp_set (struct interp *interp);
61
extern struct interp *interp_lookup (const char *name);
62
extern struct ui_out *interp_ui_out (struct interp *interp);
63
 
64
extern int current_interp_named_p (const char *name);
65
extern int current_interp_display_prompt_p (void);
66
extern void current_interp_command_loop (void);
67
 
68
extern void clear_interpreter_hooks (void);
69
 
70
/* well-known interpreters */
71
#define INTERP_CONSOLE          "console"
72
#define INTERP_MI1             "mi1"
73
#define INTERP_MI2             "mi2"
74
#define INTERP_MI3             "mi3"
75
#define INTERP_MI               "mi"
76
#define INTERP_TUI              "tui"
77
#define INTERP_INSIGHT          "insight"
78
 
79
#endif

powered by: WebSVN 2.1.0

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