aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-02-25 12:07:01 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-08 11:30:08 -0600
commit51a3bd71b3f2fa7033a5a3db459449b4bb4cd5d7 (patch)
treeda7956bb646ff067a98ce073f3585f7ddd5889da
parent0ee442502bc8af7fe1679ccf775e54fcf62dd8ac (diff)
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>
-rw-r--r--QMP/qmp-events.txt6
-rw-r--r--monitor.c3
-rw-r--r--monitor.h1
-rw-r--r--vl.c1
4 files changed, 0 insertions, 11 deletions
diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt
index d585a8d1b6..9bf14d05b3 100644
--- a/QMP/qmp-events.txt
+++ b/QMP/qmp-events.txt
@@ -19,12 +19,6 @@ Data: None.
Description: Issued when the Virtual Machine is stopped.
Data: None.
-4 DEBUG
--------
-
-Description: Issued when the Virtual Machine enters debug mode.
-Data: None.
-
4 VNC_CONNECTED
---------------
diff --git a/monitor.c b/monitor.c
index 61a072b1ae..1ef672c10a 100644
--- a/monitor.c
+++ b/monitor.c
@@ -399,9 +399,6 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
assert(event < QEVENT_MAX);
switch (event) {
- case QEVENT_DEBUG:
- event_name = "DEBUG";
- break;
case QEVENT_SHUTDOWN:
event_name = "SHUTDOWN";
break;
diff --git a/monitor.h b/monitor.h
index fc0950506f..8cc21f53fc 100644
--- a/monitor.h
+++ b/monitor.h
@@ -15,7 +15,6 @@ extern Monitor *cur_mon;
/* QMP events */
typedef enum MonitorEvent {
- QEVENT_DEBUG,
QEVENT_SHUTDOWN,
QEVENT_RESET,
QEVENT_POWERDOWN,
diff --git a/vl.c b/vl.c
index 65cc020911..03a47a4371 100644
--- a/vl.c
+++ b/vl.c
@@ -4086,7 +4086,6 @@ static void main_loop(void)
} while (vm_can_run());
if (qemu_debug_requested()) {
- monitor_protocol_event(QEVENT_DEBUG, NULL);
vm_stop(EXCP_DEBUG);
}
if (qemu_shutdown_requested()) {