mirror of
https://git.proxmox.com/git/qemu
synced 2025-06-15 19:24:57 +00:00
QMP: Drop DEBUG event
This event has been introduced in the first round of QMP commits, turns out that it's based on the usage of the EXCP_DEBUG macro, which has discussable semantics when exposed through QMP. As libvirt doesn't use this, let's just drop it. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0ee442502b
commit
51a3bd71b3
@ -19,12 +19,6 @@ Data: None.
|
|||||||
Description: Issued when the Virtual Machine is stopped.
|
Description: Issued when the Virtual Machine is stopped.
|
||||||
Data: None.
|
Data: None.
|
||||||
|
|
||||||
4 DEBUG
|
|
||||||
-------
|
|
||||||
|
|
||||||
Description: Issued when the Virtual Machine enters debug mode.
|
|
||||||
Data: None.
|
|
||||||
|
|
||||||
4 VNC_CONNECTED
|
4 VNC_CONNECTED
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
@ -399,9 +399,6 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
|
|||||||
assert(event < QEVENT_MAX);
|
assert(event < QEVENT_MAX);
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case QEVENT_DEBUG:
|
|
||||||
event_name = "DEBUG";
|
|
||||||
break;
|
|
||||||
case QEVENT_SHUTDOWN:
|
case QEVENT_SHUTDOWN:
|
||||||
event_name = "SHUTDOWN";
|
event_name = "SHUTDOWN";
|
||||||
break;
|
break;
|
||||||
|
@ -15,7 +15,6 @@ extern Monitor *cur_mon;
|
|||||||
|
|
||||||
/* QMP events */
|
/* QMP events */
|
||||||
typedef enum MonitorEvent {
|
typedef enum MonitorEvent {
|
||||||
QEVENT_DEBUG,
|
|
||||||
QEVENT_SHUTDOWN,
|
QEVENT_SHUTDOWN,
|
||||||
QEVENT_RESET,
|
QEVENT_RESET,
|
||||||
QEVENT_POWERDOWN,
|
QEVENT_POWERDOWN,
|
||||||
|
1
vl.c
1
vl.c
@ -4086,7 +4086,6 @@ static void main_loop(void)
|
|||||||
} while (vm_can_run());
|
} while (vm_can_run());
|
||||||
|
|
||||||
if (qemu_debug_requested()) {
|
if (qemu_debug_requested()) {
|
||||||
monitor_protocol_event(QEVENT_DEBUG, NULL);
|
|
||||||
vm_stop(EXCP_DEBUG);
|
vm_stop(EXCP_DEBUG);
|
||||||
}
|
}
|
||||||
if (qemu_shutdown_requested()) {
|
if (qemu_shutdown_requested()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user