Added the ability to specify dumping options (show types, show location,
depth control, pointer depth, and more) when dumping memory and viewing as
a type.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@130436 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/NamedOptionValue.cpp b/source/Interpreter/NamedOptionValue.cpp
index 04306e2..6ccc8d0 100644
--- a/source/Interpreter/NamedOptionValue.cpp
+++ b/source/Interpreter/NamedOptionValue.cpp
@@ -318,11 +318,14 @@
 OptionValueFormat::SetValueFromCString (const char *value_cstr)
 {
     Format new_format;
-    Error error (Args::StringToFormat(value_cstr, new_format));
+    uint32_t new_byte_size = UINT32_MAX;
+    Error error (Args::StringToFormat(value_cstr, new_format, m_byte_size_prefix_ok ? &new_byte_size : NULL));
     if (error.Success())
     {
         m_value_was_set = true;
         m_current_value = new_format;
+        if (new_byte_size != UINT32_MAX)
+            m_current_byte_size = new_byte_size;
     }
     return error;
 }