]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
btrace, python: Enable ptwrite filter registration.
authorFelix Willgerodt <felix.willgerodt@intel.com>
Tue, 15 May 2018 13:42:24 +0000 (15:42 +0200)
committerFelix Willgerodt <felix.willgerodt@intel.com>
Wed, 14 Aug 2024 09:20:57 +0000 (11:20 +0200)
commit6be9971c93f3bbcd4b779e5591697748da6b093e
tree317dfc692743480d284331fa92b9088bdafa25cf
parent77a33bb02413975ccac5ccca315edc72dd6fe25b
btrace, python: Enable ptwrite filter registration.

By default GDB will be printing the hex payload of the ptwrite package as
auxiliary information.  To customize this, the user can register a ptwrite
filter function in python, that takes the payload and the PC as arguments and
returns a string which will be printed instead.  Registering the filter
function is done using a factory pattern to make per-thread filtering easier.

Approved-By: Markus Metzger <markus.t.metzger@intel.com>
18 files changed:
gdb/btrace.c
gdb/btrace.h
gdb/config.in
gdb/configure
gdb/data-directory/Makefile.in
gdb/extension-priv.h
gdb/extension.c
gdb/extension.h
gdb/guile/guile.c
gdb/python/lib/gdb/ptwrite.py [new file with mode: 0644]
gdb/python/py-record-btrace.c
gdb/python/python-internal.h
gdb/python/python.c
gdbserver/config.in
gdbserver/configure
gdbsupport/common.m4
gdbsupport/config.in
gdbsupport/configure