@samitouri / QOSamiQemu / commits / 9285f1a215

gdbstub/user: Directly call gdb_breakpoint_remove_all() in user mode

No need to deref external methods with unused argument to end up calling a method defined in the same unit file, call it directly. Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20260705215729.62196-23-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Jun 26, 2026 at 16:44 UTC 9285f1a2159e87a3caecd594fd7c02616984f5fc
1 file changed +1 -1
gdbstub/user.c
+1 -1
@@ -557,7 +557,7 @@ static void disable_gdbstub(CPUState *thread_cpu)
557 close(gdbserver_user_state.fd);
558 gdbserver_user_state.fd = -1;
559 CPU_FOREACH(cpu) {
560 - cpu_breakpoint_remove_all(cpu, BP_GDB);
560 + gdb_breakpoint_remove_all(cpu);
561 /* no cpu_watchpoint_remove_all for user-mode */
562 cpu_single_step(cpu, 0);
563 }