aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-01 21:45:51 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-01 21:45:51 +0000
commite90f009bd2c47dc6379633bd6688ebc0fbf30172 (patch)
treec5f6b8c9852dcac7d303f4986dca8fc43b7fa834 /monitor.c
parent0cadcbbe6595e77ef50c5f50a2f064a37f3da698 (diff)
fix default size handling in monitor
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 <gleb@qumranet.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5381 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index cc31c15f0e..62d9de0680 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2330,8 +2330,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;