summaryrefslogtreecommitdiff
path: root/libgo/go/syscall/libcall_linux.go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-31 14:23:07 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-31 14:23:07 +0000
commitc1f409ed96822168a1702796f7b0f8d3ac152488 (patch)
tree5ca4ef3af42f636b13d4cd59ca56beb3a1f4e7af /libgo/go/syscall/libcall_linux.go
parent49ad82f568ad85eb55d70d4d58a3e83a28583702 (diff)
downloadgcc-c1f409ed96822168a1702796f7b0f8d3ac152488.tar.gz
syscall: Don't use PtraceRegs if it is not defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183758 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/syscall/libcall_linux.go')
-rw-r--r--libgo/go/syscall/libcall_linux.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
index 3ff5d5f913f..7e88d04026e 100644
--- a/libgo/go/syscall/libcall_linux.go
+++ b/libgo/go/syscall/libcall_linux.go
@@ -139,14 +139,6 @@ func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) {
return ptracePoke(PTRACE_POKEDATA, PTRACE_PEEKDATA, pid, addr, data)
}
-func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
-}
-
-func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
- return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
-}
-
func PtraceSetOptions(pid int, options int) (err error) {
return ptrace(PTRACE_SETOPTIONS, pid, 0, uintptr(options))
}