diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2021-04-30 17:09:47 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2021-05-12 10:39:41 +0200 |
commit | d51344c909926db84227f54718271e77b4adb714 (patch) | |
tree | ceb3b8dc6fb385045baa2494fb2bb660f9a65ac7 | |
parent | 55b26492bbd05637f24b9b70a507e842e466b723 (diff) | |
download | gdb-d51344c909926db84227f54718271e77b4adb714.zip gdb-d51344c909926db84227f54718271e77b4adb714.tar.gz gdb-d51344c909926db84227f54718271e77b4adb714.tar.bz2 |
gdb, btrace, pt: ignore status update enable events
Future versions of libipt report enable/disable status updates on PSB+.
Ignore them.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/btrace.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7c6ec96..2423d47 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-05-12 Markus Metzger <markus.t.metzger@intel.com> + + * btrace.c (handle_pt_insn_events): Ignore status update enable + events. + 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca> * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix diff --git a/gdb/btrace.c b/gdb/btrace.c index c697f37..17eb56c 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); |