aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
authorIvan Krasin <krasin@golang.org>2010-08-20 09:12:21 -0400
committerRuss Cox <rsc@golang.org>2010-08-20 09:12:21 -0400
commit5a0274399a2df29d0588f878125aa75f857d145a (patch)
treec2882fe517526383c7e4b142f964445c804dcfba /src/pkg/debug
parent3dc3ef4cf76086049f55d8f649c6743e6271b57c (diff)
downloadgo-5a0274399a2df29d0588f878125aa75f857d145a.tar.xz
syscall: regenerate syscall/z* files for linux/386, linux/amd64
DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS" Use <sys/user.h> instead of <linux/user.h> See http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00834.html for more details. R=imkrasin, rsc CC=golang-dev https://golang.org/cl/1957041
Diffstat (limited to 'src/pkg/debug')
-rw-r--r--src/pkg/debug/proc/regs_linux_386.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/pkg/debug/proc/regs_linux_386.go b/src/pkg/debug/proc/regs_linux_386.go
index 7cebfa64a9..b4a9769db5 100644
--- a/src/pkg/debug/proc/regs_linux_386.go
+++ b/src/pkg/debug/proc/regs_linux_386.go
@@ -80,17 +80,17 @@ func (r *_386Regs) Get(i int) Word {
case 9:
return Word(uint32(r.Eflags))
case 10:
- return Word(r.Cs)
+ return Word(r.Xcs)
case 11:
- return Word(r.Ss)
+ return Word(r.Xss)
case 12:
- return Word(r.Ds)
+ return Word(r.Xds)
case 13:
- return Word(r.Es)
+ return Word(r.Xes)
case 14:
- return Word(r.Fs)
+ return Word(r.Xfs)
case 15:
- return Word(r.Gs)
+ return Word(r.Xgs)
}
panic("invalid register index " + strconv.Itoa(i))
}
@@ -118,17 +118,17 @@ func (r *_386Regs) Set(i int, val Word) os.Error {
case 9:
r.Eflags = int32(val)
case 10:
- r.Cs = uint16(val)
+ r.Xcs = int32(val)
case 11:
- r.Ss = uint16(val)
+ r.Xss = int32(val)
case 12:
- r.Ds = uint16(val)
+ r.Xds = int32(val)
case 13:
- r.Es = uint16(val)
+ r.Xes = int32(val)
case 14:
- r.Fs = uint16(val)
+ r.Xfs = int32(val)
case 15:
- r.Gs = uint16(val)
+ r.Xgs = int32(val)
default:
panic("invalid register index " + strconv.Itoa(i))
}