Skip to content

Commit b67c063

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 09643ea commit b67c063

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
@@ -41,7 +41,7 @@ thiserror = "2.0.12"
4141
tempfile = { version = "3.20", optional = true }
4242
anyhow = "1.0"
4343
metrics = "0.24.2"
44-
elfcore = { git = "https://github.com/dblnz/elfcore.git", branch = "split-linux-impl-from-elfcore" }
44+
elfcore = { git = "https://github.com/dblnz/elfcore.git", rev = "1a57f04272dd54bc06df638f4027debe6d0f694f" }
4545

4646
[target.'cfg(windows)'.dependencies]
4747
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
@@ -260,10 +260,7 @@ pub(crate) fn crashdump_to_tempfile(hv: &dyn Hypervisor) -> Result<()> {
260260
let memory_reader = GuestMemReader::new(&ctx);
261261

262262
// Create and write core dump
263-
let core_builder = CoreDumpBuilder::from_source(
264-
Box::new(guest_view) as Box<dyn ProcessInfoSource>,
265-
Box::new(memory_reader) as Box<dyn ReadProcessMemory>,
266-
);
263+
let core_builder = CoreDumpBuilder::from_source(guest_view, memory_reader);
267264

268265
core_builder
269266
.write(&temp_file)

0 commit comments

Comments
 (0)