summaryrefslogtreecommitdiff
path: root/src/pkg/debug/proc/regs_linux_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/debug/proc/regs_linux_amd64.go')
-rw-r--r--src/pkg/debug/proc/regs_linux_amd64.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/pkg/debug/proc/regs_linux_amd64.go b/src/pkg/debug/proc/regs_linux_amd64.go
index 068add85d..64559dc9e 100644
--- a/src/pkg/debug/proc/regs_linux_amd64.go
+++ b/src/pkg/debug/proc/regs_linux_amd64.go
@@ -48,9 +48,7 @@ var names = [...]string{
//"gs_base",
}
-func (r *amd64Regs) PC() Word {
- return Word(r.Rip);
-}
+func (r *amd64Regs) PC() Word { return Word(r.Rip) }
func (r *amd64Regs) SetPC(val Word) os.Error {
r.Rip = uint64(val);
@@ -66,18 +64,14 @@ func (r *amd64Regs) SetLink(val Word) os.Error {
panic("No link register");
}
-func (r *amd64Regs) SP() Word {
- return Word(r.Rsp);
-}
+func (r *amd64Regs) SP() Word { return Word(r.Rsp) }
func (r *amd64Regs) SetSP(val Word) os.Error {
r.Rsp = uint64(val);
return r.setter(&r.PtraceRegs);
}
-func (r *amd64Regs) Names() []string {
- return &names;
-}
+func (r *amd64Regs) Names() []string { return &names }
func (r *amd64Regs) Get(i int) Word {
switch i {