From 1fb69bf46fcb92855285f3e71e1a0375890c3592 Mon Sep 17 00:00:00 2001 From: Alwin Berger Date: Thu, 8 Dec 2022 16:59:29 +0100 Subject: [PATCH] Fix segfault with gdb breakpoints --- softmmu/cpus.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/softmmu/cpus.c b/softmmu/cpus.c index 5a584a8d57..59bc58f572 100644 --- a/softmmu/cpus.c +++ b/softmmu/cpus.c @@ -305,7 +305,10 @@ void cpu_handle_guest_debug(CPUState *cpu) cpu_single_step(cpu, 0); } } else { - gdb_set_stop_cpu(cpu); + /* Begin LibAFL changes */ + // With LibAFL Breakpoints there is no gdb attached. + // gdb_set_stop_cpu(cpu); + /* End LibAFL changes */ qemu_system_debug_request(); cpu->stopped = true; }