]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: adjust inlined DW_AT_call_line by //line
authorMichael Pratt <mpratt@google.com>
Wed, 22 Feb 2023 22:50:20 +0000 (17:50 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 23 Feb 2023 22:08:33 +0000 (22:08 +0000)
commitf60a2a9c9423222b52ecb5f6463787f913195127
tree0b1c37bd0e6f6110c9bf68bbd25a44c2bc3a4f71
parent778a60c1033f21ed0a8977d6292e9964476dda68
cmd/compile: adjust inlined DW_AT_call_line by //line

insertInlCall mistakenly uses the absolute line number of the call
rather than the relative line number (adjusted by //line). Switch to the
correct line number.

The call filename was already correct.

Fixes #58648

Change-Id: Id8d1848895233e972d8cfe9c5789a88e62d06556
Reviewed-on: https://go-review.googlesource.com/c/go/+/470876
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/dwarfgen/dwinl.go
src/cmd/link/internal/ld/dwarf_test.go