Skip to content

Windows Debug Information for local variables. #5635

Open
@stooke

Description

@stooke

TL;DR

Add new Codeview symbol record definitions to Windows debug info support for PE/COFF executables. Basic support to define function parameters (only valid at function entry) will be added.

Goals

Windows debugger support now includes line numbers and type information. Static variables are accessible, but local variables and function parameters are not, unless the user casts a register to a type in the debugger.

I would like to add local variable information to Graal, based on the Dwarf support implemented by @adinn and the type info support #3732 that was just integrated. I propose a two-stage process: in the first pull request, I would add the new CodeView records required to implement this support, and simple code to define function parameters upon function entry.
A second pull request would add full local variable support.

Non-Goals

  • full stack frame-aware local variable definitions (that is for a later PR).
  • isolate support would be implemented separately.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions