👩💻 Join our community of thousands of amazing developers!
QEMU has good debugging capabilities, such as gdbstub. But sometimes we have to run a QEMU process under GDB and set breakpoints in the QEMU source code. When the process breaks, we can easily inspect the QEMU state. But what about the guest state, how can we inspect it? For example, how to read the guest memory by virtual address when a GDB watchpoint is triggered? The problem is that the QEMU monitor is stopped as well as QMP by the breakpoint. Fortunately, the GDB’s ability to call a debugee ...