From 6f679196226a15e301ef69db6c97c2bfafd2b551 Mon Sep 17 00:00:00 2001 From: Abc Xyz Date: Sat, 30 Sep 2023 00:10:15 +0300 Subject: [PATCH] fix(minibsod): allow `dump_registers` and `write_crash` for Android x86_64 (#1577) --- libafl_bolts/src/minibsod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libafl_bolts/src/minibsod.rs b/libafl_bolts/src/minibsod.rs index 5d5f43fcd4..722b211ca5 100644 --- a/libafl_bolts/src/minibsod.rs +++ b/libafl_bolts/src/minibsod.rs @@ -12,7 +12,10 @@ use libc::siginfo_t; use crate::os::unix_signals::{ucontext_t, Signal}; /// Write the content of all important registers -#[cfg(all(target_os = "linux", target_arch = "x86_64"))] +#[cfg(all( + any(target_os = "linux", target_os = "android"), + target_arch = "x86_64" +))] #[allow(clippy::similar_names)] pub fn dump_registers( writer: &mut BufWriter, @@ -414,7 +417,10 @@ fn dump_registers( Ok(()) } -#[cfg(all(target_os = "linux", target_arch = "x86_64"))] +#[cfg(all( + any(target_os = "linux", target_os = "android"), + target_arch = "x86_64" +))] fn write_crash( writer: &mut BufWriter, signal: Signal,