diff options
author | Felix Willgerodt <felix.willgerodt@intel.com> | 2023-09-13 08:42:57 +0000 |
---|---|---|
committer | Felix Willgerodt <felix.willgerodt@intel.com> | 2024-09-24 14:22:28 +0200 |
commit | 48bc2f1c65751a87d6212e1241b45fc8640f0f83 (patch) | |
tree | 5ba70e5a620931692cc3f51a1bfcb0077748c1df | |
parent | e8caa7cf6d72fb019fb3496a6c5c435ffd0ac796 (diff) | |
download | binutils-48bc2f1c65751a87d6212e1241b45fc8640f0f83.zip binutils-48bc2f1c65751a87d6212e1241b45fc8640f0f83.tar.gz binutils-48bc2f1c65751a87d6212e1241b45fc8640f0f83.tar.bz2 |
btrace: Add printing support for cfe and evd packets.
Approved-By: Markus Metzger <markus.t.metzger@intel.com>
-rw-r--r-- | gdb/btrace.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c index 9dc0c5c..649e0ad 100644 --- a/gdb/btrace.c +++ b/gdb/btrace.c @@ -2746,6 +2746,19 @@ pt_print_packet (const struct pt_packet *packet) packet->payload.ptw.ip ? (" ip") : ("")); break; #endif /* defined (LIBIPT_VERSION >= 0x200) */ + +#if (LIBIPT_VERSION >= 0x201) + case ppt_cfe: + gdb_printf (("cfe %u: 0x%x%s"), packet->payload.cfe.type, + packet->payload.cfe.vector, + packet->payload.cfe.ip ? (" ip") : ("")); + break; + + case ppt_evd: + gdb_printf (("evd %u: 0x%" PRIx64 ""), packet->payload.evd.type, + packet->payload.evd.payload); + break; +#endif /* defined (LIBIPT_VERSION >= 0x201) */ } } |