]> Cypherpunks repositories - gostls13.git/commit
runtime: fix TestSehUnwind
authorqmuntal <quimmuntal@gmail.com>
Thu, 18 May 2023 12:46:20 +0000 (14:46 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Mon, 22 May 2023 11:50:24 +0000 (11:50 +0000)
commit4859392cc29a35a0126e249ecdedbd022c755b20
treedf3541f5fe4d84d21229829b8727bb9948e8929f
parent3afbca5c5ff91b1b577b77cde6aecbfaac5881e5
runtime: fix TestSehUnwind

This CL fixes two problems:

- NewContextStub initialize a context with the wrong FP. That
function should dereference the FP returned by getcallerfp, as it
returns the callers's FP instead of the caller's caller FP.
CL 494857 will rename getcallerfp to getfp to make this fact clearer.

- sehCallers skips the bottom frame when it should.

Fixes #60053

Change-Id: I7d59b0175fc95281fcc7dd565ced9293064df3a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/496140
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/runtime/export_windows_test.go
src/runtime/runtime-seh_windows_test.go