Added a new OptionValue subclass for lldb::Format: OptionValueFormat. Added
new OptionGroup subclasses for:
- output file for use with options:
long opts: --outfile <path> --append--output
short opts: -o <path> -A
- format for use with options:
long opts: --format <format>
- variable object display controls for depth, pointer depth, wether to show
types, show summary, show location, flat output, use objc "po" style summary.
Modified ValueObjectMemory to be able to be created either with a TypeSP or
a ClangASTType.
Switched "memory read" over to use OptionGroup subclasses: one for the outfile
options, one for the command specific options, and one for the format.
llvm-svn: 130334
diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp
index 2c86b89..7c28a5b 100644
--- a/lldb/source/Core/Disassembler.cpp
+++ b/lldb/source/Core/Disassembler.cpp
@@ -569,7 +569,7 @@
break;
}
- option_value_sp->GetAsArrayValue()->InsertValue (idx, data_value_sp);
+ option_value_sp->GetAsArray()->InsertValue (idx, data_value_sp);
++idx;
}
}
@@ -687,7 +687,7 @@
data_type = OptionValue::eTypeUInt64;
}
else
- option_value_sp->GetAsDictionaryValue()->SetValueForKey (const_key, value_sp, false);
+ option_value_sp->GetAsDictionary()->SetValueForKey (const_key, value_sp, false);
}
}
@@ -740,7 +740,7 @@
fclose (test_file);
- OptionValueDictionary *data_dictionary = data_dictionary_sp->GetAsDictionaryValue();
+ OptionValueDictionary *data_dictionary = data_dictionary_sp->GetAsDictionary();
static ConstString description_key ("assembly_string");
static ConstString triple_key ("triple");