summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-16 05:36:31 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-16 05:36:31 +0000
commit669c9ede91a14c0cc74b38c1ab923146ac3919b2 (patch)
treea2ddc2d16802742d1f4556acb60e2bcde21c877e /libgo
parenta756f441f9f3d2fd2913b4d12d443199329bdf34 (diff)
downloadgcc-669c9ede91a14c0cc74b38c1ab923146ac3919b2.tar.gz
debug/dwarf: Fix handling of LineSetFile.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187578 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/debug/dwarf/line.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/debug/dwarf/line.go b/libgo/go/debug/dwarf/line.go
index 52c3b114da3..f3456fba0a4 100644
--- a/libgo/go/debug/dwarf/line.go
+++ b/libgo/go/debug/dwarf/line.go
@@ -359,7 +359,7 @@ func (d *Data) parseLineProgram(u *unit, b *buf, hdr lineHdr, end Offset) {
b.error("DWARF file number out of range")
return
}
- lineInfo.Filename = hdr.files[i]
+ lineInfo.Filename = hdr.files[i-1]
newLineInfo = true
case LineSetColumn:
lineInfo.Column = int(b.uint())