zptracemipsle_linux.go 1.4 KB

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