]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
btrace: Print "non-contiguous" for gaps.
authorFelix Willgerodt <felix.willgerodt@intel.com>
Fri, 3 May 2024 12:04:12 +0000 (14:04 +0200)
committerFelix Willgerodt <felix.willgerodt@intel.com>
Tue, 24 Sep 2024 12:22:28 +0000 (14:22 +0200)
commite8caa7cf6d72fb019fb3496a6c5c435ffd0ac796
tree426bd93269c4276c75751539dda57597e5b7ca2d
parent58706ec737824257593cd5d1c1a4205302054209
btrace: Print "non-contiguous" for gaps.

So far we printed "disabled" for gaps, when we saw a ptev_enabled event that
doesn't have the resumed flag set.  This is wrong, as the actual disabling
happens with ptev_disabled.  So far this didn't matter, but once we have event
tracing, there can be events between a ptev_disabled and a ptev_enabled.
This patch is in preparation for that, and removes the disabled reason in
favour of a more accurate non-contiguous reason, and adjusts the string we
print accordingly.

Approved-By: Markus Metzger <markus.t.metzger@intel.com>
gdb/btrace.c
gdb/btrace.h