Commit | Line | Data |
---|---|---|
7d221d74 TT |
1 | /* Python event definitions -*- c++ -*- |
2 | ||
42a4f53d | 3 | Copyright (C) 2017-2019 Free Software Foundation, Inc. |
7d221d74 TT |
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 3 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, see <http://www.gnu.org/licenses/>. */ | |
19 | ||
20 | /* To use this file, define GDB_PY_DEFINE_EVENT_TYPE to expand how you | |
21 | like, then include the file. | |
22 | ||
23 | Each invocation is of the form: | |
24 | ||
25 | GDB_PY_DEFINE_EVENT_TYPE(name, py_name, doc, base) | |
26 | ||
27 | NAME is the name of the event. | |
28 | PY_NAME a string representing what the event should be called in | |
29 | python. | |
30 | DOC Python documentation for the new event type | |
31 | BASE the base event for this event usually just event_object_type. | |
32 | */ | |
33 | ||
34 | GDB_PY_DEFINE_EVENT_TYPE (breakpoint, | |
35 | "BreakpointEvent", | |
36 | "GDB breakpoint stop event object", | |
37 | stop_event_object_type); | |
38 | ||
39 | GDB_PY_DEFINE_EVENT_TYPE (continue, | |
40 | "ContinueEvent", | |
41 | "GDB continue event object", | |
42 | thread_event_object_type); | |
43 | ||
44 | GDB_PY_DEFINE_EVENT_TYPE (exited, | |
45 | "ExitedEvent", | |
46 | "GDB exited event object", | |
47 | event_object_type); | |
48 | ||
49 | GDB_PY_DEFINE_EVENT_TYPE (new_thread, | |
50 | "NewThreadEvent", | |
51 | "GDB new thread event object", | |
52 | thread_event_object_type); | |
53 | ||
54 | GDB_PY_DEFINE_EVENT_TYPE (new_inferior, | |
55 | "NewInferiorEvent", | |
56 | "GDB new inferior event object", | |
57 | event_object_type); | |
58 | ||
59 | GDB_PY_DEFINE_EVENT_TYPE (inferior_deleted, | |
60 | "InferiorDeletedEvent", | |
61 | "GDB inferior deleted event object", | |
62 | event_object_type); | |
63 | ||
64 | GDB_PY_DEFINE_EVENT_TYPE (inferior_call_pre, | |
65 | "InferiorCallPreEvent", | |
66 | "GDB inferior function pre-call event object", | |
67 | event_object_type); | |
68 | ||
69 | GDB_PY_DEFINE_EVENT_TYPE (inferior_call_post, | |
70 | "InferiorCallPostEvent", | |
71 | "GDB inferior function post-call event object", | |
72 | event_object_type); | |
73 | ||
74 | GDB_PY_DEFINE_EVENT_TYPE (register_changed, | |
75 | "RegisterChangedEvent", | |
76 | "GDB register change event object", | |
77 | event_object_type); | |
78 | ||
79 | GDB_PY_DEFINE_EVENT_TYPE (memory_changed, | |
80 | "MemoryChangedEvent", | |
81 | "GDB memory change event object", | |
82 | event_object_type); | |
83 | ||
84 | GDB_PY_DEFINE_EVENT_TYPE (new_objfile, | |
85 | "NewObjFileEvent", | |
86 | "GDB new object file event object", | |
87 | event_object_type); | |
88 | ||
89 | GDB_PY_DEFINE_EVENT_TYPE (clear_objfiles, | |
90 | "ClearObjFilesEvent", | |
91 | "GDB clear object files event object", | |
92 | event_object_type); | |
93 | ||
94 | GDB_PY_DEFINE_EVENT_TYPE (signal, | |
95 | "SignalEvent", | |
96 | "GDB signal event object", | |
97 | stop_event_object_type); | |
98 | ||
99 | GDB_PY_DEFINE_EVENT_TYPE (stop, | |
100 | "StopEvent", | |
101 | "GDB stop event object", | |
102 | thread_event_object_type); | |
103 | ||
104 | GDB_PY_DEFINE_EVENT_TYPE (thread, | |
105 | "ThreadEvent", | |
106 | "GDB thread event object", | |
107 | event_object_type); |