Commit e90f009bd2c47dc6379633bd6688ebc0fbf30172

Authored by aurel32
1 parent 0cadcbbe

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
Showing 1 changed file with 1 additions and 1 deletions
monitor.c
... ... @@ -2330,8 +2330,8 @@ static void monitor_handle_command(const char *cmdline)
2330 2330 /* for 'i', not specifying a size gives -1 as size */
2331 2331 if (size < 0)
2332 2332 size = default_fmt_size;
  2333 + default_fmt_size = size;
2333 2334 }
2334   - default_fmt_size = size;
2335 2335 default_fmt_format = format;
2336 2336 } else {
2337 2337 count = 1;
... ...