qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RESEND][PATCH] fix default size handling in monitor.


From: Gleb Natapov
Subject: [Qemu-devel] [RESEND][PATCH] fix default size handling in monitor.
Date: Mon, 23 Jun 2008 11:55:48 +0300

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 <address@hidden>
---
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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]