]> Cypherpunks repositories - gostls13.git/commit
debug/dwarf: factor finding unit containing entry offset
authorAustin Clements <austin@google.com>
Wed, 4 Mar 2015 01:53:40 +0000 (20:53 -0500)
committerAustin Clements <austin@google.com>
Tue, 10 Mar 2015 02:32:37 +0000 (02:32 +0000)
commit0e31b4ed2646b2330aad33b959a527c1bbfe6b11
treed92a34cb155e2f958a7e204b2972e3e8a77fda4f
parentde1693f984d0ad720d72c58b2040d484357004ef
debug/dwarf: factor finding unit containing entry offset

This factors out the code for finding which unit contains an offset in
the "info" section.  The new code also replaces linear search with a
binary search.  The line table reader will also need this
functionality.

Change-Id: I2076e4fc6719b6f06fd2796cbbc7548ec1876cb3
Reviewed-on: https://go-review.googlesource.com/6733
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/debug/dwarf/entry.go
src/debug/dwarf/unit.go