aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-08-30 13:47:40 -0700
committerIan Lance Taylor <iant@golang.org>2010-08-30 13:47:40 -0700
commit7a2daa7d3a1871385d5d09b80578bda7bf857037 (patch)
tree0652cc751ee6d765964c050da1d0c5f79b3f0aa4 /src/pkg/debug
parentb433552ebc20ed8669dac61c7a46f438c1bf3627 (diff)
downloadgo-7a2daa7d3a1871385d5d09b80578bda7bf857037.tar.xz
proc, eval: Don't assign address of an array to a slice.
R=rsc CC=golang-dev https://golang.org/cl/2084041
Diffstat (limited to 'src/pkg/debug')
-rw-r--r--src/pkg/debug/proc/regs_linux_amd64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/debug/proc/regs_linux_amd64.go b/src/pkg/debug/proc/regs_linux_amd64.go
index a9f3569d3a..381be29b17 100644
--- a/src/pkg/debug/proc/regs_linux_amd64.go
+++ b/src/pkg/debug/proc/regs_linux_amd64.go
@@ -71,7 +71,7 @@ func (r *amd64Regs) SetSP(val Word) os.Error {
return r.setter(&r.PtraceRegs)
}
-func (r *amd64Regs) Names() []string { return &names }
+func (r *amd64Regs) Names() []string { return names[0:] }
func (r *amd64Regs) Get(i int) Word {
switch i {