diff options
author | Felix Willgerodt <felix.willgerodt@intel.com> | 2019-02-25 15:30:29 +0100 |
---|---|---|
committer | Felix Willgerodt <felix.willgerodt@intel.com> | 2024-08-14 11:20:56 +0200 |
commit | 8958aefd34200c8d2cd6e81bba32198468789c62 (patch) | |
tree | 3811d80cd4d2a0743da4ab090cfd5640ef8c4c42 /gdb/python/py-record-btrace.h | |
parent | bea4f6fac4e0b1700188fad19499c62c46f8e70d (diff) | |
download | binutils-8958aefd34200c8d2cd6e81bba32198468789c62.zip binutils-8958aefd34200c8d2cd6e81bba32198468789c62.tar.gz binutils-8958aefd34200c8d2cd6e81bba32198468789c62.tar.bz2 |
python: Add clear() to gdb.Record.
This function allows to clear the trace data from python, forcing to
re-decode the trace for successive commands.
This will be used in future ptwrite patches, to trigger re-decoding when
the ptwrite filter changes.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Markus Metzger <markus.t.metzger@intel.com>
Diffstat (limited to 'gdb/python/py-record-btrace.h')
-rw-r--r-- | gdb/python/py-record-btrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/py-record-btrace.h b/gdb/python/py-record-btrace.h index 5010cb3..3be5860 100644 --- a/gdb/python/py-record-btrace.h +++ b/gdb/python/py-record-btrace.h @@ -31,6 +31,9 @@ extern PyObject *recpy_bt_format (PyObject *self, void *closure); /* Implementation of record.goto (instruction) -> None. */ extern PyObject *recpy_bt_goto (PyObject *self, PyObject *value); +/* Implementation of BtraceRecord.clear (self) -> None. */ +extern PyObject *recpy_bt_clear (PyObject *self, PyObject *args); + /* Implementation of record.instruction_history [list]. */ extern PyObject *recpy_bt_instruction_history (PyObject *self, void *closure); |