1 /* Python event definitions -*- c++ -*-
3 Copyright (C) 2017-2020 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 (new_inferior,
56 "GDB new inferior event object",
59 GDB_PY_DEFINE_EVENT_TYPE (inferior_deleted,
60 "InferiorDeletedEvent",
61 "GDB inferior deleted event object",
64 GDB_PY_DEFINE_EVENT_TYPE (inferior_call_pre,
65 "InferiorCallPreEvent",
66 "GDB inferior function pre-call event object",
69 GDB_PY_DEFINE_EVENT_TYPE (inferior_call_post,
70 "InferiorCallPostEvent",
71 "GDB inferior function post-call event object",
74 GDB_PY_DEFINE_EVENT_TYPE (register_changed,
75 "RegisterChangedEvent",
76 "GDB register change event object",
79 GDB_PY_DEFINE_EVENT_TYPE (memory_changed,
81 "GDB memory change event object",
84 GDB_PY_DEFINE_EVENT_TYPE (new_objfile,
86 "GDB new object file event object",
89 GDB_PY_DEFINE_EVENT_TYPE (clear_objfiles,
91 "GDB clear object files event object",
94 GDB_PY_DEFINE_EVENT_TYPE (signal,
96 "GDB signal event object",
97 stop_event_object_type);
99 GDB_PY_DEFINE_EVENT_TYPE (stop,
101 "GDB stop event object",
102 thread_event_object_type);
104 GDB_PY_DEFINE_EVENT_TYPE (thread,
106 "GDB thread event object",