Skip to content

Commit e7adb6f

Browse files
committed
fixup: try double file extension
1 parent d03f8bd commit e7adb6f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

crates/runner-shared/src/unwind_data.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ use core::{
55
use serde::{Deserialize, Serialize};
66
use std::{hash::DefaultHasher, ops::Range};
77

8-
pub const UNWIND_FILE_EXT: &str = "unwind.bin";
8+
pub const UNWIND_FILE_EXT1: &str = "bin";
9+
pub const UNWIND_FILE_EXT2: &str = "unwind";
910

1011
pub type UnwindData = UnwindDataV2;
1112

@@ -21,7 +22,7 @@ impl UnwindData {
2122

2223
pub fn save_to<P: AsRef<std::path::Path>>(&self, folder: P, pid: i32) -> anyhow::Result<()> {
2324
let unwind_data_path = folder.as_ref().join(format!(
24-
"{}_{:x}_{:x}_{}.{UNWIND_FILE_EXT}",
25+
"{}_{:x}_{:x}_{}.{UNWIND_FILE_EXT2}.{UNWIND_FILE_EXT1}",
2526
pid,
2627
self.avma_range.start,
2728
self.avma_range.end,

0 commit comments

Comments
 (0)