Commit e90f009b authored by aurel32's avatar aurel32

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: default avatarGleb Natapov <>
Signed-off-by: default avatarAurelien Jarno <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162
parent 0cadcbbe
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment