| * gdbstub user-mode helper routines. |
| * We know for user-mode we are using TCG so we can call stuff directly. |
| * Copyright (c) 2022 Linaro Ltd |
| * SPDX-License-Identifier: GPL-2.0-or-later |
| #include "exec/gdbstub.h" |
| bool gdb_supports_guest_debug(void) |
| /* user-mode == TCG == supported */ |
| int gdb_breakpoint_insert(CPUState *cs, int type, hwaddr addr, hwaddr len) |
| err = cpu_breakpoint_insert(cpu, addr, BP_GDB, NULL); |
| /* user-mode doesn't support watchpoints */ |
| int gdb_breakpoint_remove(CPUState *cs, int type, hwaddr addr, hwaddr len) |
| err = cpu_breakpoint_remove(cpu, addr, BP_GDB); |
| /* user-mode doesn't support watchpoints */ |
| void gdb_breakpoint_remove_all(CPUState *cs) |
| cpu_breakpoint_remove_all(cs, BP_GDB); |