1// Copyright 2016 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5// +build linux 6// +build mips mipsle mips64 mips64le mips64p32 mips64p32le 7 8package syscall 9 10import "unsafe" 11 12func (r *PtraceRegs) PC() uint64 { 13 return r.Cp0_epc 14} 15 16func (r *PtraceRegs) SetPC(pc uint64) { 17 r.Cp0_epc = pc 18} 19 20func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) { 21 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) 22} 23 24func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) { 25 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) 26} 27 28func rawVforkSyscall(trap, a1 uintptr) (r1 uintptr, err Errno) { 29 panic("not implemented") 30} 31