PR target/82112
[official-gcc.git] / libgo / go / syscall / syscall_linux_mipsx.go
blob06dd1ea2bc379f85a91ebda8ea8d27be8526f8c7
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.
5 // +build linux
6 // +build mips mipsle mips64 mips64le mips64p32 mips64p32le
8 package syscall
10 import "unsafe"
12 func (r *PtraceRegs) PC() uint64 {
13 return r.Cp0_epc
16 func (r *PtraceRegs) SetPC(pc uint64) {
17 r.Cp0_epc = pc
20 func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
21 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
24 func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
25 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))