Attempts to find an ELF binary with the same base name as target path to load debug info from.
(path: PathBuf)
| 371 | |
| 372 | /// Attempts to find an ELF binary with the same base name as target path to load debug info from. |
| 373 | fn find_elf_for_path(path: PathBuf) -> Option<PathBuf> { |
| 374 | let elf_path = path.with_extension("elf"); |
| 375 | if elf_path.exists() { |
| 376 | return Some(elf_path); |
| 377 | } |
| 378 | let out_path = path.with_extension("out"); |
| 379 | if out_path.exists() { |
| 380 | return Some(out_path); |
| 381 | } |
| 382 | None |
| 383 | } |
| 384 | |
| 385 | fn write_raw_bytes( |
| 386 | vm: &mut icicle_vm::Vm, |