Skip to content

Commit 6f67919

Browse files
authored
fix(minibsod): allow dump_registers and write_crash for Android x86_64 (#1577)
1 parent 5b0e3dd commit 6f67919

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

libafl_bolts/src/minibsod.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ use libc::siginfo_t;
1212
use crate::os::unix_signals::{ucontext_t, Signal};
1313

1414
/// Write the content of all important registers
15-
#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
15+
#[cfg(all(
16+
any(target_os = "linux", target_os = "android"),
17+
target_arch = "x86_64"
18+
))]
1619
#[allow(clippy::similar_names)]
1720
pub fn dump_registers<W: Write>(
1821
writer: &mut BufWriter<W>,
@@ -414,7 +417,10 @@ fn dump_registers<W: Write>(
414417
Ok(())
415418
}
416419

417-
#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
420+
#[cfg(all(
421+
any(target_os = "linux", target_os = "android"),
422+
target_arch = "x86_64"
423+
))]
418424
fn write_crash<W: Write>(
419425
writer: &mut BufWriter<W>,
420426
signal: Signal,

0 commit comments

Comments
 (0)