From 5db18834ff0541c2cf3eb53b7ca336dfa5dfa821 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 15 Nov 2022 08:57:40 +0100 Subject: pkg/report: extract top frame in arm reports --- pkg/report/linux.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index fc2494adf..6a00a0785 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -1027,7 +1027,10 @@ var linuxStackParams = &stackParams{ }, frameRes: []*regexp.Regexp{ compile("^ *(?:{{PC}} ){0,2}{{FUNC}}"), - compile(`^ *{{PC}} \([a-zA-Z0-9_]+\) from {{PC}} \({{FUNC}}`), // arm is totally different + // Arm is totally different. + // Extract both current and next frames. This is needed for the top + // frame which is present only in LR register which we don't parse. + compile(`^ *{{PC}} \(([a-zA-Z0-9_.]+)\) from {{PC}} \({{FUNC}}`), }, skipPatterns: []string{ "__sanitizer", -- cgit mrf-deployment