Skip to content

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

@mknyszek

Description

@mknyszek

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.

Metadata

Metadata

Labels

FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.help wanted

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions