From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mw0eh-00015s-Cs for qemu-devel@nongnu.org; Thu, 08 Oct 2009 17:36:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mw0eb-0000xi-ON for qemu-devel@nongnu.org; Thu, 08 Oct 2009 17:36:09 -0400 Received: from [199.232.76.173] (port=34339 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mw0eb-0000xL-A4 for qemu-devel@nongnu.org; Thu, 08 Oct 2009 17:36:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38057) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mw0ea-0002y5-Qy for qemu-devel@nongnu.org; Thu, 08 Oct 2009 17:36:05 -0400 From: Luiz Capitulino Date: Thu, 8 Oct 2009 18:35:39 -0300 Message-Id: <1255037747-3340-3-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1255037747-3340-1-git-send-email-lcapitulino@redhat.com> References: <1255037747-3340-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 02/10] monitor: Convert do_memory_save() to QObject List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com Note that errors are not being converted yet. Signed-off-by: Luiz Capitulino --- monitor.c | 2 +- qemu-monitor.hx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index 3424e60..44ff994 100644 --- a/monitor.c +++ b/monitor.c @@ -977,7 +977,7 @@ static void do_print(Monitor *mon, const QDict *qdict) monitor_printf(mon, "\n"); } -static void do_memory_save(Monitor *mon, const QDict *qdict) +static void do_memory_save(Monitor *mon, const QDict *qdict, QObject **ret_data) { FILE *f; uint32_t size = qdict_get_int(qdict, "size"); diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 29999c6..70b9125 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -666,7 +666,8 @@ ETEXI .args_type = "val:l,size:i,filename:s", .params = "addr size file", .help = "save to disk virtual memory dump starting at 'addr' of size 'size'", - .mhandler.cmd = do_memory_save, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_memory_save, }, STEXI -- 1.6.5.rc2.17.gdbc1b