From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7q3v-00054w-Du for qemu-devel@nongnu.org; Sun, 15 Jun 2008 07:06:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7q3u-00054E-1R for qemu-devel@nongnu.org; Sun, 15 Jun 2008 07:06:19 -0400 Received: from [199.232.76.173] (port=39948 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7q3t-00053r-Qa for qemu-devel@nongnu.org; Sun, 15 Jun 2008 07:06:17 -0400 Received: from il.qumranet.com ([212.179.150.194]:44575) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K7q3t-0002Wf-Io for qemu-devel@nongnu.org; Sun, 15 Jun 2008 07:06:18 -0400 Received: from gleb-debian.qumranet.com (unknown [172.16.15.143]) by il.qumranet.com (Postfix) with ESMTP id 1E9DF250310 for ; Sun, 15 Jun 2008 14:06:09 +0300 (IDT) Date: Sun, 15 Jun 2008 14:06:13 +0300 From: Gleb Natapov Message-ID: <20080615110613.GA3049@minantech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] fix default size handling in monitor. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, If /i format is used once (with x/xp/p command) default_fmt_size is set to -1 and subsequent commands of the form /x outputs nothing. Included patched fixes this by setting default_fmt_size only if the command is not of format /i. Signed-off-by: Gleb Natapov --- diff --git a/monitor.c b/monitor.c index 1eb8be1..4df4d87 100644 --- a/monitor.c +++ b/monitor.c @@ -2270,8 +2270,8 @@ static void monitor_handle_command(const char *cmdline) /* for 'i', not specifying a size gives -1 as size */ if (size < 0) size = default_fmt_size; + default_fmt_size = size; } - default_fmt_size = size; default_fmt_format = format; } else { count = 1; -- Gleb.