gdb
[deliverable/binutils-gdb.git] / gdb / mi / mi-common.h
CommitLineData
034dad6f 1/* Interface for common GDB/MI data
7b6bb8da
JB
2 Copyright (C) 2005, 2007, 2008, 2009, 2010, 2011
3 Free Software Foundation, Inc.
034dad6f
BR
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
a9762ec7 9 the Free Software Foundation; either version 3 of the License, or
034dad6f
BR
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
a9762ec7 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
034dad6f
BR
19
20#ifndef MI_COMMON_H
21#define MI_COMMON_H
22
9a2b4c1b
MS
23/* Represents the reason why GDB is sending an asynchronous command to
24 the front end. NOTE: When modifing this, don't forget to update
25 gdb.texinfo! */
034dad6f
BR
26enum async_reply_reason
27{
28 EXEC_ASYNC_BREAKPOINT_HIT = 0,
29 EXEC_ASYNC_WATCHPOINT_TRIGGER,
30 EXEC_ASYNC_READ_WATCHPOINT_TRIGGER,
31 EXEC_ASYNC_ACCESS_WATCHPOINT_TRIGGER,
32 EXEC_ASYNC_FUNCTION_FINISHED,
33 EXEC_ASYNC_LOCATION_REACHED,
34 EXEC_ASYNC_WATCHPOINT_SCOPE,
35 EXEC_ASYNC_END_STEPPING_RANGE,
36 EXEC_ASYNC_EXITED_SIGNALLED,
37 EXEC_ASYNC_EXITED,
38 EXEC_ASYNC_EXITED_NORMALLY,
39 EXEC_ASYNC_SIGNAL_RECEIVED,
36dfb11c
TT
40 EXEC_ASYNC_SOLIB_EVENT,
41 EXEC_ASYNC_FORK,
42 EXEC_ASYNC_VFORK,
43 EXEC_ASYNC_SYSCALL_ENTRY,
44 EXEC_ASYNC_SYSCALL_RETURN,
45 EXEC_ASYNC_EXEC,
034dad6f
BR
46 /* This is here only to represent the number of enums. */
47 EXEC_ASYNC_LAST
48};
49
50const char *async_reason_lookup (enum async_reply_reason reason);
51
66bb093b
VP
52struct mi_interp
53{
54 /* MI's output channels */
55 struct ui_file *out;
56 struct ui_file *err;
57 struct ui_file *log;
58 struct ui_file *targ;
59 struct ui_file *event_channel;
60
4801a9a3
PA
61 /* MI's builder. */
62 struct ui_out *uiout;
63
66bb093b
VP
64 /* This is the interpreter for the mi... */
65 struct interp *mi2_interp;
66 struct interp *mi1_interp;
67 struct interp *mi_interp;
68};
69
034dad6f 70#endif
This page took 0.526987 seconds and 4 git commands to generate.