mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-24 16:27:27 +00:00
btrace: Add printing support for cfe and evd packets.
Approved-By: Markus Metzger <markus.t.metzger@intel.com>
This commit is contained in:
13
gdb/btrace.c
13
gdb/btrace.c
@@ -2746,6 +2746,19 @@ pt_print_packet (const struct pt_packet *packet)
|
|||||||
packet->payload.ptw.ip ? (" ip") : (""));
|
packet->payload.ptw.ip ? (" ip") : (""));
|
||||||
break;
|
break;
|
||||||
#endif /* defined (LIBIPT_VERSION >= 0x200) */
|
#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) */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user