Skip to content

Commit 616ef3d

Browse files
committed
crashdump: update the use of CoreDumpBuilder to reflect elfcore change to generics
Signed-off-by: Doru Blânzeanu <[email protected]>
1 parent d829b99 commit 616ef3d

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/hyperlight_host/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tempfile = { version = "3.20", optional = true }
4242
anyhow = "1.0"
4343
metrics = "0.24.2"
4444
serde_json = "1.0"
45-
elfcore = { git = "https://github.com/dblnz/elfcore.git", branch = "split-linux-impl-from-elfcore" }
45+
elfcore = { git = "https://github.com/dblnz/elfcore.git", rev = "1a57f04272dd54bc06df638f4027debe6d0f694f" }
4646

4747
[target.'cfg(windows)'.dependencies]
4848
windows = { version = "0.61", features = [

src/hyperlight_host/src/hypervisor/crashdump.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,7 @@ pub(crate) fn crashdump_to_tempfile(hv: &dyn Hypervisor) -> Result<()> {
276276
let memory_reader = GuestMemReader::new(&ctx);
277277

278278
// Create and write core dump
279-
let core_builder = CoreDumpBuilder::from_source(
280-
Box::new(guest_view) as Box<dyn ProcessInfoSource>,
281-
Box::new(memory_reader) as Box<dyn ReadProcessMemory>,
282-
);
279+
let core_builder = CoreDumpBuilder::from_source(guest_view, memory_reader);
283280

284281
core_builder
285282
.write(&temp_file)

0 commit comments

Comments
 (0)