]> Cypherpunks repositories - gostls13.git/commit
debug/dwarf: add support for DWARFv5 to (*Data).Ranges
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Thu, 4 Jun 2020 14:59:06 +0000 (16:59 +0200)
committerIan Lance Taylor <iant@golang.org>
Sat, 24 Oct 2020 04:11:41 +0000 (04:11 +0000)
commit05b6118139d880a5bced23da9d07bdb0db8e7084
tree53401a4e7f5fa4c86f31f165cc90084f803991f7
parentbc0b198bd75a8eef45d0965531ba6fa127d0e8ec
debug/dwarf: add support for DWARFv5 to (*Data).Ranges

Updates the (*Data).Ranges method to work with DWARFv5 which uses the
new debug_rnglists section instead of debug_ranges.

This does not include supporting DW_FORM_rnglistx.

General support for DWARFv5 was added by CL 175138.

Change-Id: I01f919a865616a3ff12f5bf649c2c9abf89fcf52
Reviewed-on: https://go-review.googlesource.com/c/go/+/236657
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Emmanuel Odeke <emm.odeke@gmail.com>
src/debug/dwarf/const.go
src/debug/dwarf/dwarf5ranges_test.go [new file with mode: 0644]
src/debug/dwarf/entry.go
src/debug/dwarf/open.go
src/debug/dwarf/testdata/debug_rnglists [new file with mode: 0644]