diff options
author | Felix Willgerodt <felix.willgerodt@intel.com> | 2018-05-15 15:42:24 +0200 |
---|---|---|
committer | Felix Willgerodt <felix.willgerodt@intel.com> | 2024-08-14 11:20:57 +0200 |
commit | 6be9971c93f3bbcd4b779e5591697748da6b093e (patch) | |
tree | 317dfc692743480d284331fa92b9088bdafa25cf /gdb/python/python-internal.h | |
parent | 77a33bb02413975ccac5ccca315edc72dd6fe25b (diff) | |
download | gdb-6be9971c93f3bbcd4b779e5591697748da6b093e.zip gdb-6be9971c93f3bbcd4b779e5591697748da6b093e.tar.gz gdb-6be9971c93f3bbcd4b779e5591697748da6b093e.tar.bz2 |
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>
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r-- | gdb/python/python-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 5db3088..bf3ab67 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -464,6 +464,9 @@ extern enum ext_lang_rc gdbpy_apply_val_pretty_printer struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language); +extern void gdbpy_load_ptwrite_filter + (const struct extension_language_defn *extlang, + struct btrace_thread_info *btinfo); extern enum ext_lang_bt_status gdbpy_apply_frame_filter (const struct extension_language_defn *, const frame_info_ptr &frame, frame_filter_flags flags, |