Re: [PATCH v2 06/12] python: Add clear() to gdb.Record.

Eli Zaretskii via Gdb-patches
2021-06-14T15:52:40Z

> Date: Mon, 14 Jun 2021 16:54:05 +0200
> From: Felix Willgerodt via Gdb-patches <gdb-patches@sourceware.org>
>
> This function allows to clear the trace data from python, forcing to
> re-decode the trace for successive commands.
>
> gdb/ChangeLog:
> 2021-06-14 Felix Willgerodt <felix.willgerodt@intel.com>
>
> * py-record-btrace.c (recpy_bt_clear): New function.
> * py-record-btrace.h (recpy_bt_clear): New export.
> * py-record.c (recpy_clear): New function.
> (recpy_record_methods): Add clear().
>
> testsuite/ChangeLog:
> 2021-06-14 Felix Willgerodt <felix.willgerodt@intel.com>
>
> * gdb.python/py-record-btrace.exp: Add tests for clear().
>
> gdb/doc/ChangeLog:
> 2021-06-14 Felix Willgerodt <felix.willgerodt@intel.com>
>
> * python.texi (gdb.Record): Document clear().

The documentation part is OK, thanks.