1 /* Python interface to record targets.
3 Copyright 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 #ifndef PYTHON_PY_RECORD_H
21 #define PYTHON_PY_RECORD_H
24 #include "python-internal.h"
27 /* Python Record object. */
28 struct recpy_record_object
32 /* The thread this object refers to. */
35 /* The current recording method. */
36 enum record_method method
;
39 /* Python recorded element object. This is generic enough to represent
40 recorded instructions as well as recorded function call segments, hence the
42 struct recpy_element_object
46 /* The thread this object refers to. */
49 /* The current recording method. */
50 enum record_method method
;
56 /* Python RecordInstruction type. */
57 extern PyTypeObject recpy_insn_type
;
59 /* Python RecordFunctionSegment type. */
60 extern PyTypeObject recpy_func_type
;
62 /* Python RecordAuxiliary type. */
63 extern PyTypeObject recpy_aux_type
;
65 /* Create a new gdb.RecordInstruction object. */
66 extern PyObject
*recpy_insn_new (thread_info
*thread
, enum record_method method
,
69 /* Create a new gdb.RecordFunctionSegment object. */
70 extern PyObject
*recpy_func_new (thread_info
*thread
, enum record_method method
,
73 /* Create a new gdb.RecordGap object. */
74 extern PyObject
*recpy_gap_new (int reason_code
, const char *reason_string
,
77 /* Create a new gdb.RecordGap object. */
78 extern PyObject
*recpy_aux_new (thread_info
*thread
, enum record_method method
,
81 #endif /* PYTHON_PY_RECORD_H */