1 /* Python event definitions
-*- c
++ -*-
3 Copyright (C
) 2017-2024 Free Software Foundation
, Inc.
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
3 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
, see
<http
://www.gnu.org
/licenses
/>.
*/
20 /* To use this file
, define GDB_PY_DEFINE_EVENT_TYPE to expand how you
21 like
, then include the file.
23 Each invocation is of the form
:
25 GDB_PY_DEFINE_EVENT_TYPE(name
, py_name
, doc
, base
)
27 NAME is the name of the event.
28 PY_NAME a string representing what the event should be called in
30 DOC Python documentation for the new event type
31 BASE the base event for this event usually just event_object_type.
34 GDB_PY_DEFINE_EVENT_TYPE (breakpoint
,
36 "GDB breakpoint stop event object",
37 stop_event_object_type
);
39 GDB_PY_DEFINE_EVENT_TYPE (continue
,
41 "GDB continue event object",
42 thread_event_object_type
);
44 GDB_PY_DEFINE_EVENT_TYPE (exited
,
46 "GDB exited event object",
49 GDB_PY_DEFINE_EVENT_TYPE (new_thread
,
51 "GDB new thread event object",
52 thread_event_object_type
);
54 GDB_PY_DEFINE_EVENT_TYPE (thread_exited
,
56 "GDB thread exited event object",
59 GDB_PY_DEFINE_EVENT_TYPE (new_inferior
,
61 "GDB new inferior event object",
64 GDB_PY_DEFINE_EVENT_TYPE (inferior_deleted
,
65 "InferiorDeletedEvent",
66 "GDB inferior deleted event object",
69 GDB_PY_DEFINE_EVENT_TYPE (inferior_call_pre
,
70 "InferiorCallPreEvent",
71 "GDB inferior function pre-call event object",
74 GDB_PY_DEFINE_EVENT_TYPE (inferior_call_post
,
75 "InferiorCallPostEvent",
76 "GDB inferior function post-call event object",
79 GDB_PY_DEFINE_EVENT_TYPE (register_changed
,
80 "RegisterChangedEvent",
81 "GDB register change event object",
84 GDB_PY_DEFINE_EVENT_TYPE (memory_changed
,
86 "GDB memory change event object",
89 GDB_PY_DEFINE_EVENT_TYPE (new_objfile
,
91 "GDB new object file event object",
94 GDB_PY_DEFINE_EVENT_TYPE (free_objfile
,
96 "GDB free object file event object",
99 GDB_PY_DEFINE_EVENT_TYPE (clear_objfiles
,
100 "ClearObjFilesEvent",
101 "GDB clear object files event object",
104 GDB_PY_DEFINE_EVENT_TYPE (signal
,
106 "GDB signal event object",
107 stop_event_object_type
);
109 GDB_PY_DEFINE_EVENT_TYPE (stop
,
111 "GDB stop event object",
112 thread_event_object_type
);
114 GDB_PY_DEFINE_EVENT_TYPE (thread
,
116 "GDB thread event object",
119 GDB_PY_DEFINE_EVENT_TYPE (gdb_exiting
,
121 "GDB is about to exit",
124 GDB_PY_DEFINE_EVENT_TYPE (connection
,
126 "GDB connection added or removed object",
129 GDB_PY_DEFINE_EVENT_TYPE (executable_changed
,
130 "ExecutableChangedEvent",
131 "GDB executable changed event",
134 GDB_PY_DEFINE_EVENT_TYPE (new_progspace
,
136 "GDB new Progspace event object",
139 GDB_PY_DEFINE_EVENT_TYPE (free_progspace
,
140 "FreeProgspaceEvent",
141 "GDB free Progspace event object",
144 GDB_PY_DEFINE_EVENT_TYPE (tui_enabled
,
146 "GDB TUI enabled event object",