...

Source file src/cmd/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go

Documentation: cmd/vendor/golang.org/x/sys/unix

     1  // Code generated by linux/mkall.go generatePtracePair("mipsle", "mips64le"). DO NOT EDIT.
     2  
     3  //go:build linux && (mipsle || mips64le)
     4  
     5  package unix
     6  
     7  import "unsafe"
     8  
     9  // PtraceRegsMipsle is the registers used by mipsle binaries.
    10  type PtraceRegsMipsle struct {
    11  	Regs     [32]uint64
    12  	Lo       uint64
    13  	Hi       uint64
    14  	Epc      uint64
    15  	Badvaddr uint64
    16  	Status   uint64
    17  	Cause    uint64
    18  }
    19  
    20  // PtraceGetRegsMipsle fetches the registers used by mipsle binaries.
    21  func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error {
    22  	return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
    23  }
    24  
    25  // PtraceSetRegsMipsle sets the registers used by mipsle binaries.
    26  func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error {
    27  	return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
    28  }
    29  
    30  // PtraceRegsMips64le is the registers used by mips64le binaries.
    31  type PtraceRegsMips64le struct {
    32  	Regs     [32]uint64
    33  	Lo       uint64
    34  	Hi       uint64
    35  	Epc      uint64
    36  	Badvaddr uint64
    37  	Status   uint64
    38  	Cause    uint64
    39  }
    40  
    41  // PtraceGetRegsMips64le fetches the registers used by mips64le binaries.
    42  func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error {
    43  	return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
    44  }
    45  
    46  // PtraceSetRegsMips64le sets the registers used by mips64le binaries.
    47  func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error {
    48  	return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
    49  }
    50  

View as plain text