Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Try to use Sancov tables when recording Windows coverage #844

Merged
merged 15 commits into from
May 4, 2021

Conversation

ranweiler
Copy link
Member

@ranweiler ranweiler commented May 2, 2021

Includes #842, #843, merge after.

  • Add Sancov table discovery for Windows modules with debug info
  • When recording coverage, try to recover coverage blocks from Sancov tables
  • Not tested against x86-32 targets, but should be close

@ranweiler ranweiler changed the title Sancov windows Try to use Sancov tables when recording Windows coverage May 2, 2021
use pdb::{AddressMap, DataSymbol, FallibleIterator, Rva, ProcedureSymbol, Source, SymbolData, PDB};

/// Basic block offset provider for uninstrumented PE modules.
pub struct PeBasicBlockProvider {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a future PR, we will revisit and move the PE process_ code into this type.

@bmc-msft
Copy link
Contributor

bmc-msft commented May 3, 2021

This PR needs #847 merged to fix the build.

@ranweiler ranweiler merged commit ca7f0f1 into microsoft:main May 4, 2021
@ranweiler ranweiler deleted the sancov-windows branch May 4, 2021 15:33
@ghost ghost locked as resolved and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants