summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/syscall_linux_386.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-03 16:17:21 -0700
committerRuss Cox <rsc@golang.org>2009-09-03 16:17:21 -0700
commitc7029263b9aef503da2760efd5b7301e614e2065 (patch)
treea6edb679ca76e2cd96ac1355a22db006265fe2c4 /src/pkg/syscall/syscall_linux_386.go
parent86efeab6687cffedafa31ff0e06ddc116d1df4e4 (diff)
downloadgolang-c7029263b9aef503da2760efd5b7301e614e2065.tar.gz
fix linux 386 build
R=austin DELTA=140 (128 added, 0 deleted, 12 changed) OCL=34344 CL=34347
Diffstat (limited to 'src/pkg/syscall/syscall_linux_386.go')
-rw-r--r--src/pkg/syscall/syscall_linux_386.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pkg/syscall/syscall_linux_386.go b/src/pkg/syscall/syscall_linux_386.go
index dc64ae79f..46ed428da 100644
--- a/src/pkg/syscall/syscall_linux_386.go
+++ b/src/pkg/syscall/syscall_linux_386.go
@@ -136,3 +136,11 @@ func Listen(s int, n int) (errno int) {
_, errno = socketcall(_LISTEN, uintptr(s), uintptr(n), 0, 0, 0, 0);
return;
}
+
+func (r *PtraceRegs) PC() uint64 {
+ return uint64(uint32(r.Eip));
+}
+
+func (r *PtraceRegs) SetPC(pc uint64) {
+ r.Eip = int32(pc);
+}