1 // syscall_linux_alpha.go -- GNU/Linux ALPHA specific support
3 // Copyright 2011 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
11 type PtraceRegs
struct {
43 func (r
*PtraceRegs
) PC() uint64 {
47 func (r
*PtraceRegs
) SetPC(pc
uint64) {
51 func PtraceGetRegs(pid
int, regsout
*PtraceRegs
) (err error
) {
52 return ptrace(PTRACE_GETREGS
, pid
, 0, uintptr(unsafe
.Pointer(regsout
)))
55 func PtraceSetRegs(pid
int, regs
*PtraceRegs
) (err error
) {
56 return ptrace(PTRACE_SETREGS
, pid
, 0, uintptr(unsafe
.Pointer(regs
)))