dumping process address maps on netbsd (#316)

This commit is contained in:
David CARLIER 2021-10-05 23:18:40 +01:00 committed by GitHub
parent 131483410f
commit 939784d512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -500,7 +500,7 @@ mod unix_signal_handler {
);
}
// let's yolo-cat the maps for debugging, if possible.
#[cfg(all(target_os = "linux", feature = "std"))]
#[cfg(all(any(target_os = "linux", target_os = "netbsd"), feature = "std"))]
match std::fs::read_to_string("/proc/self/maps") {
Ok(maps) => println!("maps:\n{}", maps),
Err(e) => println!("Couldn't load mappings: {:?}", e),