Source file
src/runtime/signal_windows_386.go
1
2
3
4
5 package runtime
6
7 import "internal/runtime/syscall/windows"
8
9 func prepareContextForSigResume(c *windows.Context) {
10 c.Edx = c.Esp
11 c.Ecx = c.Eip
12 }
13
14 func dumpregs(r *windows.Context) {
15 print("eax ", hex(r.Eax), "\n")
16 print("ebx ", hex(r.Ebx), "\n")
17 print("ecx ", hex(r.Ecx), "\n")
18 print("edx ", hex(r.Edx), "\n")
19 print("edi ", hex(r.Edi), "\n")
20 print("esi ", hex(r.Esi), "\n")
21 print("ebp ", hex(r.Ebp), "\n")
22 print("esp ", hex(r.Esp), "\n")
23 print("eip ", hex(r.Eip), "\n")
24 print("eflags ", hex(r.EFlags), "\n")
25 print("cs ", hex(r.SegCs), "\n")
26 print("fs ", hex(r.SegFs), "\n")
27 print("gs ", hex(r.SegGs), "\n")
28 }
29
View as plain text