Skip to content

refactor: consolidate dwarf read planning#149

Merged
swananan merged 1 commit intomainfrom
refactor/dwarf-semantic-foundation
May 4, 2026
Merged

refactor: consolidate dwarf read planning#149
swananan merged 1 commit intomainfrom
refactor/dwarf-semantic-foundation

Conversation

@swananan
Copy link
Copy Markdown
Owner

@swananan swananan commented May 3, 2026

Move DWARF variable access to PC-context read plans, making ghostscope-dwarf own scope selection, access paths, availability, and lowering requirements before compiler codegen.

Route compiler variable reads through planned locations and remove raw evaluation adapters from the compiler-facing path. Reject unsafe fallbacks for shadowed variables, ambiguous globals, and value-backed aggregate member offsets.

Preserve optimized-out print metadata, keep link-time addresses rebased, and cover optimized variables, member access, and address trace failures.

Refs #148.

Move DWARF variable access to PC-context read plans, making
ghostscope-dwarf own scope selection, access paths, availability, and
lowering requirements before compiler codegen.

Route compiler variable reads through planned locations and remove raw
evaluation adapters from the compiler-facing path. Reject unsafe fallbacks
for shadowed variables, ambiguous globals, and value-backed aggregate member
offsets.

Preserve optimized-out print metadata, keep link-time addresses rebased, and
cover optimized variables, member access, and address trace failures.

Refs #148.
@swananan swananan force-pushed the refactor/dwarf-semantic-foundation branch from 61bc52a to 4c1b2b2 Compare May 3, 2026 18:20
@swananan swananan merged commit 1cc0e8f into main May 4, 2026
10 checks passed
@swananan swananan deleted the refactor/dwarf-semantic-foundation branch May 4, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant