Skip to content

Portable PDBs aren't generated correctly. #4523

@brettfo

Description

@brettfo

Running the Pdb2Pdb tool on a portable PDB produced by fsc sometimes fails due to incorrect PDBs.

Speaking with @tmat the issue is in the LocalScope table. Copying from an internal email:

The table is required to be sorted first by Method in ascending order, then by StartOffset in ascending order, then by Length in descending order.

The F# PDB appears to prefer Length descending before StartOffset ascending.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions