- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for saveSigContext (0.24 sec)
-
src/runtime/export_debug_arm64_test.go
return *(*uint32)(unsafe.Pointer(ctxt.sigpc())) == 0xd4200000 // BRK 0 } func sigctxtStatus(ctxt *sigctxt) uint64 { return ctxt.r20() } func (h *debugCallHandler) saveSigContext(ctxt *sigctxt) { sp := ctxt.sp() sp -= 2 * goarch.PtrSize ctxt.set_sp(sp) *(*uint64)(unsafe.Pointer(uintptr(sp))) = ctxt.lr() // save the current lr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Apr 23 05:38:56 UTC 2022 - 3.5K bytes - Viewed (0) -
src/runtime/export_debug_ppc64le_test.go
return *(*uint32)(unsafe.Pointer(ctxt.sigpc())) == 0x7fe00008 // Trap } func sigctxtStatus(ctxt *sigctxt) uint64 { return ctxt.r20() } func (h *debugCallHandler) saveSigContext(ctxt *sigctxt) { sp := ctxt.sp() sp -= 4 * goarch.PtrSize ctxt.set_sp(sp) *(*uint64)(unsafe.Pointer(uintptr(sp))) = ctxt.link() // save the current lr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 15:33:38 UTC 2023 - 3.5K bytes - Viewed (0) -
src/runtime/export_debug_amd64_test.go
return *(*byte)(unsafe.Pointer(uintptr(ctxt.rip() - 1))) == 0xcc // INT 3 } func sigctxtStatus(ctxt *sigctxt) uint64 { return ctxt.r12() } func (h *debugCallHandler) saveSigContext(ctxt *sigctxt) { // Push current PC on the stack. rsp := ctxt.rsp() - goarch.PtrSize *(*uint64)(unsafe.Pointer(uintptr(rsp))) = ctxt.rip() ctxt.set_rsp(rsp) // Write the argument frame size.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Apr 23 05:38:56 UTC 2022 - 3.6K bytes - Viewed (0) -
src/runtime/export_debug_test.go
switch h.gp.atomicstatus.Load() { case _Grunning: if getg().m != h.mp { println("trap on wrong M", getg().m, h.mp) return false } // Save the signal context h.saveSigContext(ctxt) // Set PC to debugCallV2. ctxt.setsigpc(uint64(abi.FuncPCABIInternal(debugCallV2))) // Call injected. Switch to the debugCall protocol. testSigtrap = h.handleF case _Grunnable:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 5.1K bytes - Viewed (0) -
src/runtime/asm_arm64.s
LDP (10*8)(RSP), (R6, R7) LDP (8*8)(RSP), (R4, R5) LDP (6*8)(RSP), (R2, R3) LDP (4*8)(RSP), (R0, R1) LDP -8(RSP), (R29, R27) ADD $288, RSP, RSP // Add 16 more bytes, see saveSigContext MOVD -16(RSP), R30 // restore old lr JMP (R27) // runtime.debugCallCheck assumes that functions defined with the // DEBUG_CALL_FN macro are safe points to inject calls.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 20:38:24 UTC 2024 - 43.4K bytes - Viewed (0) -
src/runtime/asm_ppc64x.s
MOVD 288(R1), g MOVD 16(R1), R31 // restore old LR MOVD R31, LR // restore caller PC MOVD 0(R1), CTR MOVD 136(R1), R31 // Add 32 bytes more to compensate for SP change in saveSigContext ADD $352, R1 JMP (CTR) #endif #define DEBUG_CALL_FN(NAME,MAXSIZE) \ TEXT NAME(SB),WRAPPER,$MAXSIZE-0; \ NO_LOCAL_POINTERS; \ MOVD $0, R20; \ TW $31, R0, R0 \ MOVD $1, R20; \
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:17:17 UTC 2024 - 45.4K bytes - Viewed (0)