diff --git a/include/libafl/user.h b/include/libafl/user.h index a65ffca372..410cf185da 100644 --- a/include/libafl/user.h +++ b/include/libafl/user.h @@ -16,6 +16,9 @@ struct libafl_mapinfo { bool is_valid; }; +extern void (*libafl_dump_core_hook)(int host_sig); +extern int libafl_force_dfl; + void libafl_dump_core_exec(int signal); void libafl_qemu_handle_crash(int host_sig, siginfo_t* info, void* puc); @@ -35,4 +38,4 @@ int _libafl_qemu_user_init(int argc, char** argv, char** envp); #ifdef AS_LIB void libafl_qemu_init(int argc, char** argv); -#endif \ No newline at end of file +#endif diff --git a/linux-user/signal.c b/linux-user/signal.c index 15a2669e96..6eb4d650f3 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -736,11 +736,6 @@ void die_with_signal(int host_sig) _exit(EXIT_FAILURE); } -//// --- Begin LibAFL code --- - - -//// --- End LibAFL code --- - static G_NORETURN void dump_core_and_abort(CPUArchState *env, int target_sig) {