OSDN Git Service

debug/dwarf: Fix handling of LineSetFile.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 May 2012 05:36:46 +0000 (05:36 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 May 2012 05:36:46 +0000 (05:36 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187579 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/go/debug/dwarf/line.go

index 52c3b11..f3456fb 100644 (file)
@@ -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())