diff options
author | Felix Willgerodt <felix.willgerodt@intel.com> | 2019-02-21 10:48:35 +0100 |
---|---|---|
committer | Felix Willgerodt <felix.willgerodt@intel.com> | 2024-08-14 11:20:56 +0200 |
commit | bea4f6fac4e0b1700188fad19499c62c46f8e70d (patch) | |
tree | d9d3efc032df5a97f253a863f2a5c602122493ec /gdb/python/py-record.h | |
parent | d5e1495d99e2a0962b69d673a8a336501a6ec5fa (diff) | |
download | gdb-bea4f6fac4e0b1700188fad19499c62c46f8e70d.zip gdb-bea4f6fac4e0b1700188fad19499c62c46f8e70d.tar.gz gdb-bea4f6fac4e0b1700188fad19499c62c46f8e70d.tar.bz2 |
python: Introduce gdb.RecordAuxiliary class.
Auxiliary instructions are no real instructions and get their own object
class, similar to gaps. gdb.Record.instruction_history is now possibly a
list of gdb.RecordInstruction, gdb.RecordGap or gdb.RecordAuxiliary
objects.
This patch is in preparation for the new ptwrite feature, which is based on
auxiliary instructions.
Approved-By: Markus Metzger <markus.t.metzger@intel.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/python/py-record.h')
-rw-r--r-- | gdb/python/py-record.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/python/py-record.h b/gdb/python/py-record.h index 7e11610..0988584 100644 --- a/gdb/python/py-record.h +++ b/gdb/python/py-record.h @@ -59,6 +59,9 @@ extern PyTypeObject recpy_insn_type; /* Python RecordFunctionSegment type. */ extern PyTypeObject recpy_func_type; +/* Python RecordAuxiliary type. */ +extern PyTypeObject recpy_aux_type; + /* Create a new gdb.RecordInstruction object. */ extern PyObject *recpy_insn_new (thread_info *thread, enum record_method method, Py_ssize_t number); @@ -71,4 +74,8 @@ extern PyObject *recpy_func_new (thread_info *thread, enum record_method method, extern PyObject *recpy_gap_new (int reason_code, const char *reason_string, Py_ssize_t number); +/* Create a new gdb.RecordGap object. */ +extern PyObject *recpy_aux_new (thread_info *thread, enum record_method method, + Py_ssize_t number); + #endif /* PYTHON_PY_RECORD_H */ |