Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for restoreSigContext (0.43 sec)

  1. src/runtime/export_debug_arm64_test.go

    	sp := ctxt.sp()
    	reason := *(*string)(unsafe.Pointer(uintptr(sp) + 8))
    	h.err = plainError(reason)
    	ctxt.set_pc(ctxt.pc() + 4)
    }
    
    // case 16
    func (h *debugCallHandler) restoreSigContext(ctxt *sigctxt) {
    	// Restore all registers except for pc and sp
    	pc, sp := ctxt.pc(), ctxt.sp()
    	*ctxt.regs() = h.sigCtxt.savedRegs
    	ctxt.set_pc(pc + 4)
    	ctxt.set_sp(sp)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 23 05:38:56 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  2. src/runtime/export_debug_ppc64le_test.go

    	sp := ctxt.sp()
    	reason := *(*string)(unsafe.Pointer(uintptr(sp) + 40))
    	h.err = plainError(reason)
    	ctxt.set_pc(ctxt.pc() + 4)
    }
    
    // case 16
    func (h *debugCallHandler) restoreSigContext(ctxt *sigctxt) {
    	// Restore all registers except for pc and sp
    	pc, sp := ctxt.pc(), ctxt.sp()
    	*ctxt.cregs() = h.sigCtxt.savedRegs
    	ctxt.set_pc(pc + 4)
    	ctxt.set_sp(sp)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 15:33:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. src/runtime/export_debug_test.go

    		h.debugCallPanicOut(ctxt)
    	case 8:
    		// Call isn't safe. Get the reason.
    		h.debugCallUnsafe(ctxt)
    		// Don't wake h.done. We need to transition to status 16 first.
    	case 16:
    		h.restoreSigContext(ctxt)
    		// Done
    		notewakeup(&h.done)
    	default:
    		h.err = plainError("unexpected debugCallV2 status")
    		notewakeup(&h.done)
    	}
    	// Resume execution.
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/runtime/export_debug_amd64_test.go

    // case 8
    func (h *debugCallHandler) debugCallUnsafe(ctxt *sigctxt) {
    	rsp := ctxt.rsp()
    	reason := *(*string)(unsafe.Pointer(uintptr(rsp)))
    	h.err = plainError(reason)
    }
    
    // case 16
    func (h *debugCallHandler) restoreSigContext(ctxt *sigctxt) {
    	// Restore all registers except RIP and RSP.
    	rip, rsp := ctxt.rip(), ctxt.rsp()
    	fp := ctxt.regs().fpstate
    	*ctxt.regs() = h.sigCtxt.savedRegs
    	ctxt.regs().fpstate = fp
    	*fp = h.sigCtxt.savedFP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 23 05:38:56 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top