proc: fix TestRangeOverFuncNext (#3740)

Fix TestRangeOverFuncNext on non-linux operating systems, on arm64 and
when the build mode is PIE.
This commit is contained in:
Alessandro Arzilli
2024-06-14 23:32:34 +02:00
committed by GitHub
parent 06053a7e4b
commit cce54c0992
2 changed files with 50 additions and 24 deletions

View File

@ -911,7 +911,7 @@ func rangeFuncStackTrace(tgt *Target, g *G) ([]Stackframe, error) {
if len(frames) > 0 {
prev := &frames[len(frames)-1]
if fr.Regs.SP() <= prev.Regs.SP() {
if fr.Regs.SP() < prev.Regs.SP() {
nonMonotonicSP = true
return false
}