aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-07-19 18:52:35 -0400
committerRuss Cox <rsc@golang.org>2013-07-19 18:52:35 -0400
commitc75884185332458242c03b17014bc3801977f684 (patch)
tree938c76ea6e4f76f4614e9b0005f5832ef48f5f8c /src/pkg/debug
parent7666f24a8438937dde212da8cbd9cb2c940a1752 (diff)
downloadgo-c75884185332458242c03b17014bc3801977f684.tar.xz
cmd/ld, runtime: remove unused fields from Func
R=golang-dev, r CC=golang-dev https://golang.org/cl/11604043
Diffstat (limited to 'src/pkg/debug')
-rw-r--r--src/pkg/debug/gosym/pclntab.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/debug/gosym/pclntab.go b/src/pkg/debug/gosym/pclntab.go
index 2b9bedb45b..3e6a8046b3 100644
--- a/src/pkg/debug/gosym/pclntab.go
+++ b/src/pkg/debug/gosym/pclntab.go
@@ -339,7 +339,7 @@ func (t *LineTable) go12PCToLine(pc uint64) (line int) {
return -1
}
entry := t.uintptr(f)
- linetab := t.binary.Uint32(f[t.ptrsize+8*4:])
+ linetab := t.binary.Uint32(f[t.ptrsize+5*4:])
return int(t.pcvalue(linetab, entry, pc))
}
@@ -356,7 +356,7 @@ func (t *LineTable) go12PCToFile(pc uint64) (file string) {
return ""
}
entry := t.uintptr(f)
- filetab := t.binary.Uint32(f[t.ptrsize+7*4:])
+ filetab := t.binary.Uint32(f[t.ptrsize+4*4:])
fno := t.pcvalue(filetab, entry, pc)
if fno <= 0 {
return ""
@@ -384,8 +384,8 @@ func (t *LineTable) go12LineToPC(file string, line int) (pc uint64) {
for i := uint32(0); i < t.nfunctab; i++ {
f := t.Data[t.uintptr(t.functab[2*t.ptrsize*i+t.ptrsize:]):]
entry := t.uintptr(f)
- filetab := t.binary.Uint32(f[t.ptrsize+7*4:])
- linetab := t.binary.Uint32(f[t.ptrsize+8*4:])
+ filetab := t.binary.Uint32(f[t.ptrsize+4*4:])
+ linetab := t.binary.Uint32(f[t.ptrsize+5*4:])
pc := t.findFileLine(entry, filetab, linetab, int32(filenum), int32(line))
if pc != 0 {
return pc