From c39cbb22b0388aa073edd98c3dce7c90d3b5e686 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 16 May 2012 05:36:31 +0000 Subject: debug/dwarf: Fix handling of LineSetFile. From-SVN: r187578 --- libgo/go/debug/dwarf/line.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgo') diff --git a/libgo/go/debug/dwarf/line.go b/libgo/go/debug/dwarf/line.go index 52c3b11..f3456fb 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()) -- cgit v1.1