Skip to content

Commit 7536d43

Browse files
committed
Fix compilation on Mac and Windows.
1 parent 35898f1 commit 7536d43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/symbolize/gimli/coff.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl Mapping {
1414
pub fn new(path: &Path) -> Option<Mapping> {
1515
let map = super::mmap(path)?;
1616
Mapping::mk(map, |data, stash| {
17-
Context::new(stash, Object::parse(data)?, None)
17+
Context::new(stash, Object::parse(data)?, None, None)
1818
})
1919
}
2020
}

src/symbolize/gimli/macho.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl Mapping {
4545
let (macho, data) = find_header(data)?;
4646
let endian = macho.endian().ok()?;
4747
let obj = Object::parse(macho, endian, data)?;
48-
Context::new(stash, obj, None)
48+
Context::new(stash, obj, None, None)
4949
})
5050
}
5151

@@ -82,7 +82,7 @@ impl Mapping {
8282
return None;
8383
}
8484
let obj = Object::parse(macho, endian, data)?;
85-
Context::new(stash, obj, None)
85+
Context::new(stash, obj, None, None)
8686
});
8787
if let Some(candidate) = candidate {
8888
return Some(candidate);
@@ -309,7 +309,7 @@ fn object_mapping(path: &[u8]) -> Option<Mapping> {
309309
let (macho, data) = find_header(data)?;
310310
let endian = macho.endian().ok()?;
311311
let obj = Object::parse(macho, endian, data)?;
312-
Context::new(stash, obj, None)
312+
Context::new(stash, obj, None, None)
313313
})
314314
}
315315

0 commit comments

Comments
 (0)