aboutsummaryrefslogtreecommitdiff
path: root/gdb/btrace.c
diff options
context:
space:
mode:
authorFelix Willgerodt <felix.willgerodt@intel.com>2024-05-03 14:04:12 +0200
committerFelix Willgerodt <felix.willgerodt@intel.com>2024-09-24 14:22:28 +0200
commite8caa7cf6d72fb019fb3496a6c5c435ffd0ac796 (patch)
tree426bd93269c4276c75751539dda57597e5b7ca2d /gdb/btrace.c
parent58706ec737824257593cd5d1c1a4205302054209 (diff)
downloadgdb-e8caa7cf6d72fb019fb3496a6c5c435ffd0ac796.zip
gdb-e8caa7cf6d72fb019fb3496a6c5c435ffd0ac796.tar.gz
gdb-e8caa7cf6d72fb019fb3496a6c5c435ffd0ac796.tar.bz2
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>
Diffstat (limited to 'gdb/btrace.c')
-rw-r--r--gdb/btrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c
index ff9612d..9dc0c5c 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -1255,7 +1255,7 @@ handle_pt_insn_events (struct btrace_thread_info *btinfo,
&& !btinfo->functions.empty ())
{
struct btrace_function *bfun
- = ftrace_new_gap (btinfo, BDE_PT_DISABLED, gaps);
+ = ftrace_new_gap (btinfo, BDE_PT_NON_CONTIGUOUS, gaps);
pt_insn_get_offset (decoder, &offset);
@@ -1359,7 +1359,7 @@ handle_pt_insn_event_flags (struct btrace_thread_info *btinfo,
struct btrace_function *bfun;
uint64_t offset;
- bfun = ftrace_new_gap (btinfo, BDE_PT_DISABLED, gaps);
+ bfun = ftrace_new_gap (btinfo, BDE_PT_NON_CONTIGUOUS, gaps);
pt_insn_get_offset (decoder, &offset);
@@ -1966,8 +1966,8 @@ btrace_decode_error (enum btrace_format format, int errcode)
case BDE_PT_USER_QUIT:
return _("trace decode cancelled");
- case BDE_PT_DISABLED:
- return _("disabled");
+ case BDE_PT_NON_CONTIGUOUS:
+ return _("non-contiguous");
case BDE_PT_OVERFLOW:
return _("overflow");