Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAhq4-0003bR-U2 for qemu-devel@nongnu.org; Mon, 23 Jun 2008 04:55:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAhq3-0003aT-AU for qemu-devel@nongnu.org; Mon, 23 Jun 2008 04:55:52 -0400 Received: from [199.232.76.173] (port=49541 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAhq3-0003aO-15 for qemu-devel@nongnu.org; Mon, 23 Jun 2008 04:55:51 -0400 Received: from il.qumranet.com ([212.179.150.194]:45333) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAhq1-000171-Q1 for qemu-devel@nongnu.org; Mon, 23 Jun 2008 04:55:50 -0400 Received: from gleb-debian.qumranet.com (unknown [172.16.15.143]) by il.qumranet.com (Postfix) with ESMTP id 78F7D250310 for ; Mon, 23 Jun 2008 11:55:48 +0300 (IDT) Date: Mon, 23 Jun 2008 11:55:48 +0300 From: Gleb Natapov Subject: [Qemu-devel] [RESEND][PATCH] fix default size handling in monitor. Message-ID: <20080623085548.GB3028@minantech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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.