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/configure | |
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/configure')
-rwxr-xr-x | gdb/configure | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure index 673dd6d..53eaad4 100755 --- a/gdb/configure +++ b/gdb/configure @@ -21512,6 +21512,17 @@ _ACEOF fi + ac_fn_c_check_member "$LINENO" "struct pt_event" "variant.ptwrite" "ac_cv_member_struct_pt_event_variant_ptwrite" "#include <intel-pt.h> +" +if test "x$ac_cv_member_struct_pt_event_variant_ptwrite" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_PT_EVENT_VARIANT_PTWRITE 1 +_ACEOF + + +fi + LIBS=$save_LIBS fi fi |