Skip to content

Commit 2781711

Browse files
committed
Parse pe files on Windows
1 parent 6463d67 commit 2781711

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/symbolize/gimli.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ impl Mapping {
5959
fn new(path: &Path) -> Option<Mapping> {
6060
if cfg!(target_os = "macos") {
6161
Mapping::new_find_dsym(path)
62+
} else if cfg!(windows) {
63+
let map = mmap(path)?;
64+
let object = object::PeFile::parse(&map).ok()?;
65+
Some(mk!(Mapping { map, object }))
6266
} else {
6367
let map = mmap(path)?;
6468
let object = object::ElfFile::parse(&map).ok()?;

0 commit comments

Comments
 (0)