golang/go

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

オープン

#73,035 opened on 2025/03/25

 (1 件のコメント) (0 件のリアクション) (2 人の担当者)Go (19,008 件のフォーク)batch import
FeatureRequestNeedsInvestigationcompiler/runtimehelp wanted

Repository metrics

Stars
 (133,883 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド