Debian Codegraph @

src/runtime/signal_windows_amd64.go

raw
1 // Copyright 2025 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package runtime
6
7 import "internal/runtime/syscall/windows"
8
9 func prepareContextForSigResume(c *windows.Context) {
10 c.R8 = c.Rsp
11 c.R9 = c.Rip
12 }
13
14 func dumpregs(r *windows.Context) {
15 print("rax ", hex(r.Rax), "\n")
16 print("rbx ", hex(r.Rbx), "\n")
17 print("rcx ", hex(r.Rcx), "\n")
18 print("rdx ", hex(r.Rdx), "\n")
19 print("rdi ", hex(r.Rdi), "\n")
20 print("rsi ", hex(r.Rsi), "\n")
21 print("rbp ", hex(r.Rbp), "\n")
22 print("rsp ", hex(r.Rsp), "\n")
23 print("r8 ", hex(r.R8), "\n")
24 print("r9 ", hex(r.R9), "\n")
25 print("r10 ", hex(r.R10), "\n")
26 print("r11 ", hex(r.R11), "\n")
27 print("r12 ", hex(r.R12), "\n")
28 print("r13 ", hex(r.R13), "\n")
29 print("r14 ", hex(r.R14), "\n")
30 print("r15 ", hex(r.R15), "\n")
31 print("rip ", hex(r.Rip), "\n")
32 print("rflags ", hex(r.EFlags), "\n")
33 print("cs ", hex(r.SegCs), "\n")
34 print("fs ", hex(r.SegFs), "\n")
35 print("gs ", hex(r.SegGs), "\n")
36 }