golang/go

x/debug: viewcore can't type some stack variables

Open

#73,035 opened on Mar 25, 2025

View on GitHub
 (1 comment) (0 reactions) (2 assignees)Go (133,883 stars) (19,008 forks)batch import
FeatureRequestNeedsInvestigationcompiler/runtimehelp wanted

Description

Some stack variables in viewcore and gocore are ignored because gocore doesn't handle them properly. I don't fully understand this yet, but @thanm made us aware of this issue and helpfully left a comment in the code:

"Instead what the code above should be doing is caching any abstract variables it encounters in a map (indexed by DWARF offset), then when it encounters a concrete var, pick the name and type up from the abstract variable."

Than also linked to a design doc for this with examples: https://github.com/golang/proposal/blob/master/design/22080-dwarf-inlining.md#how-the-generated-dwarf-should-look.

Contributor guide

x/debug: viewcore can't type some stack variables · golang/go#73035 | Good First Issue