Set the correct byte size for complex integer (-fI) memory reads.
authorJason Molenda <jmolenda@apple.com>
Sat, 23 Mar 2013 05:16:54 +0000 (05:16 +0000)
committerJason Molenda <jmolenda@apple.com>
Sat, 23 Mar 2013 05:16:54 +0000 (05:16 +0000)
<rdar://problem/12281172>

llvm-svn: 177814

lldb/source/Commands/CommandObjectMemory.cpp

index ea8feed..43944ce 100644 (file)
@@ -221,6 +221,14 @@ public:
                 if (!count_option_set)
                     format_options.GetCountValue() = 8;
                 break;
+            case eFormatComplexInteger:
+                if (!byte_size_option_set)
+                    byte_size_value = 8;
+                if (!num_per_line_option_set)
+                    m_num_per_line = 1;
+                if (!count_option_set)
+                    format_options.GetCountValue() = 8;
+                break;
             case eFormatHex:
                 if (!byte_size_option_set)
                     byte_size_value = 4;