diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-16 05:36:31 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-16 05:36:31 +0000 |
commit | c39cbb22b0388aa073edd98c3dce7c90d3b5e686 (patch) | |
tree | a2ddc2d16802742d1f4556acb60e2bcde21c877e /libgo | |
parent | 2c686dfe81543de77737f9bb296f8579c86a49c1 (diff) | |
download | gcc-c39cbb22b0388aa073edd98c3dce7c90d3b5e686.tar.gz |
debug/dwarf: Fix handling of LineSetFile.
From-SVN: r187578
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/debug/dwarf/line.go | 2 |
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()) |