From d51344c909926db84227f54718271e77b4adb714 Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Fri, 30 Apr 2021 17:09:47 +0200 Subject: [PATCH] gdb, btrace, pt: ignore status update enable events Future versions of libipt report enable/disable status updates on PSB+. Ignore them. --- gdb/ChangeLog | 5 +++++ gdb/btrace.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7c6ec9622b0..2423d47c192 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-05-12 Markus Metzger + + * btrace.c (handle_pt_insn_events): Ignore status update enable + events. + 2021-05-11 Simon Marchi * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix diff --git a/gdb/btrace.c b/gdb/btrace.c index c697f37f46c..17eb56c6d05 100644 --- a/gdb/btrace.c +++ b/gdb/btrace.c @@ -1222,6 +1222,9 @@ handle_pt_insn_events (struct btrace_thread_info *btinfo, break; case ptev_enabled: + if (event.status_update != 0) + break; + if (event.variant.enabled.resumed == 0 && !btinfo->functions.empty ()) { bfun = ftrace_new_gap (btinfo, BDE_PT_DISABLED, gaps); -- 2.30.2