Skip to contentSkip to conversation

[5381] fix default size handling in monitor

Qemu-devel Aurelien Jarno 1 participant 1 message Oct 1, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5381

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5381
Author:   aurel32
Date:     2008-10-01 21:45:51 +0000 (Wed, 01 Oct 2008)

Log Message:
-----------
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.

Modified Paths:
--------------
trunk/monitor.c

Modified: trunk/monitor.c
===================================================================

monitor.c +1 -1
@@ -2330,8 +2330,8 @@
                         /* 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;