]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/dwarf: always use AT_ranges for scopes with DWARF 5
authorThan McIntosh <thanm@golang.org>
Wed, 12 Mar 2025 18:08:21 +0000 (14:08 -0400)
committerThan McIntosh <thanm@golang.org>
Thu, 13 Mar 2025 12:16:59 +0000 (05:16 -0700)
commitbdfa604b2e12990784c4eac4186360b56857370b
tree236c8111f64a8adbdecb319c5da80d081072b055
parentd7f58834cb9684cff9ccd8e8e8294dc436129551
cmd/internal/dwarf: always use AT_ranges for scopes with DWARF 5

This patch extends the change in CL 657175 to apply the same abbrev
selection strategy to single-range lexical scopes that we're now using
for inlined routine bodies, when DWARF 5 is in effect. Ranges are more
compact and use fewer relocation than explicit hi/lo PC values, so we
might as well always use them.

Updates #26379.

Change-Id: Ieeaddf50e82acc4866010e29af32bcd1fb3b4f02
Reviewed-on: https://go-review.googlesource.com/c/go/+/657177
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/dwarf/dwarf.go