cmd/compile: bad DWARF location for variable #58813
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Given the following code:
Compiled with `-gcflags='all=-N -l', main.cul function compiles into:
and the variable
id
hasDW_OP_fbreg -0x18
has its location, however at instruction 0x49c8ea, which is the instruction picked for a breakpoint on line:8
, the variable is stored on register rcx, not in its stack location (where it gets moved only later at instruction 0x49c8ed).Originally reported as go-delve/delve#3290.
cc @dr2chase.
The text was updated successfully, but these errors were encountered: