]> Cypherpunks repositories - gostls13.git/commit
debug/dwarf: expose file name table from line table reader
authorAustin Clements <austin@google.com>
Wed, 21 Aug 2019 20:21:06 +0000 (16:21 -0400)
committerAustin Clements <austin@google.com>
Wed, 18 Sep 2019 19:09:02 +0000 (19:09 +0000)
commit861556c5d7b83a75a66549ca4c7199e343f5eb40
tree295c1620405a9ba3a6999c859c821545c933ecca
parentbc40294d47f100b6da4b21823cf85d11ce931c1b
debug/dwarf: expose file name table from line table reader

Currently, the line table reader keeps the file name table internal.
However, there are various attributes like AttrDeclFile and
AttrCallFile whose value is an index into this table. Hence, in order
to interpret these attributes, we need access to the file name table.

This CL adds a method to LineReader that exposes the file table of the
current compilation unit in order to allow consumers to interpret
attributes that index into this table.

Change-Id: I6b64b815f23b3b0695036ddabe1a67c3954867dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/192699
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/debug/dwarf/line.go
src/debug/dwarf/line_test.go