LEFT | RIGHT |
1 // Copyright 2013 The Go Authors. All rights reserved. | 1 // Copyright 2013 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext) | 5 #define SIG_REGS(ctxt) (((Ucontext*)(ctxt))->uc_mcontext) |
6 | 6 |
7 #define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RAX]) | 7 #define SIG_RAX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RAX]) |
8 #define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RBX]) | 8 #define SIG_RBX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RBX]) |
9 #define SIG_RCX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RCX]) | 9 #define SIG_RCX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RCX]) |
10 #define SIG_RDX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RDX]) | 10 #define SIG_RDX(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RDX]) |
11 #define SIG_RDI(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RDI]) | 11 #define SIG_RDI(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RDI]) |
(...skipping 10 matching lines...) Expand all Loading... |
22 #define SIG_R15(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R15]) | 22 #define SIG_R15(info, ctxt) (SIG_REGS(ctxt).gregs[REG_R15]) |
23 #define SIG_RIP(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RIP]) | 23 #define SIG_RIP(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RIP]) |
24 #define SIG_RFLAGS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RFLAGS]) | 24 #define SIG_RFLAGS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_RFLAGS]) |
25 | 25 |
26 #define SIG_CS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_CS]) | 26 #define SIG_CS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_CS]) |
27 #define SIG_FS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_FS]) | 27 #define SIG_FS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_FS]) |
28 #define SIG_GS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_GS]) | 28 #define SIG_GS(info, ctxt) (SIG_REGS(ctxt).gregs[REG_GS]) |
29 | 29 |
30 #define SIG_CODE0(info, ctxt) ((info)->si_code) | 30 #define SIG_CODE0(info, ctxt) ((info)->si_code) |
31 #define SIG_CODE1(info, ctxt) (*(uintptr*)&(info)->__data[0]) | 31 #define SIG_CODE1(info, ctxt) (*(uintptr*)&(info)->__data[0]) |
LEFT | RIGHT |