]> Cypherpunks repositories - gostls13.git/commit
runtime: add "sigaction" to sigreturn symbol name
authorMichael Pratt <mpratt@google.com>
Thu, 23 Mar 2023 19:28:42 +0000 (15:28 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 24 Mar 2023 18:53:44 +0000 (18:53 +0000)
commit0ed364a46379f9561b72a29e7fdad15a1e191325
tree1a9a2c13aed13cd34682c2f1d3300a5f0343298d
parent5f882d82661db9f2d3d04924f67defe1732f24e2
runtime: add "sigaction" to sigreturn symbol name

In order to identify the sigreturn function, gdb looks for
"__restore_rt". However because that symbol is sometimes missing from
the symbol table, it also performs the same instruction matching as
libgcc, but only in symbols containing "sigaction" (it expects sigaction
to preceed __restore_rt).

To match this heuristic, we add __sigaction to the sigreturn symbol
name.

Fixes #25218.

Change-Id: I09cb231ad23f668d451f31dd5633f782355fc91d
Reviewed-on: https://go-review.googlesource.com/c/go/+/479096
Auto-Submit: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
src/runtime/os_linux.go
src/runtime/runtime-gdb_unix_test.go [new file with mode: 0644]
src/runtime/sys_linux_386.s
src/runtime/sys_linux_amd64.s
src/runtime/sys_linux_arm.s
src/runtime/sys_linux_arm64.s
src/runtime/sys_linux_ppc64x.s
src/runtime/sys_linux_s390x.s