mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
whpx: Added support for breakpoints and stepping
Below is the updated version of the patch adding debugging support to WHPX. It incorporates feedback from Alex Bennée and Peter Maydell regarding not changing the emulation logic depending on the gdb connection status. Instead of checking for an active gdb connection to determine whether QEMU should intercept the INT1 exceptions, it now checks whether any breakpoints have been set, or whether gdb has explicitly requested one or more CPUs to do single-stepping. Having none of these condition present now has the same effect as not using gdb at all. Message-Id: <0e7f01d82e9e$00e9c360$02bd4a20$@sysprogs.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
9d734b85ed
commit
d7482ffe97
8 changed files with 815 additions and 18 deletions
|
@ -34,7 +34,13 @@ static inline bool shutdown_caused_by_guest(ShutdownCause cause)
|
|||
}
|
||||
|
||||
void vm_start(void);
|
||||
int vm_prepare_start(void);
|
||||
|
||||
/**
|
||||
* vm_prepare_start: Prepare for starting/resuming the VM
|
||||
*
|
||||
* @step_pending: whether any of the CPUs is about to be single-stepped by gdb
|
||||
*/
|
||||
int vm_prepare_start(bool step_pending);
|
||||
int vm_stop(RunState state);
|
||||
int vm_stop_force_state(RunState state);
|
||||
int vm_shutdown(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue