summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Options.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-04-27 22:04:39 +0000
committerGreg Clayton <gclayton@apple.com>2011-04-27 22:04:39 +0000
commit84c39663a929f4baae525604b0c0d4814eceb8cf (patch)
treeea07c9a31332e5cb97754bbc55238541d0a3f071 /lldb/source/Interpreter/Options.cpp
parent8513d4236c8d621dcaffe9e94059225f055ee196 (diff)
downloadbcm5719-llvm-84c39663a929f4baae525604b0c0d4814eceb8cf.tar.gz
bcm5719-llvm-84c39663a929f4baae525604b0c0d4814eceb8cf.zip
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
Diffstat (limited to 'lldb/source/Interpreter/Options.cpp')
-rw-r--r--lldb/source/Interpreter/Options.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp
index d6b30edeb66..2351345100d 100644
--- a/lldb/source/Interpreter/Options.cpp
+++ b/lldb/source/Interpreter/Options.cpp
@@ -907,6 +907,18 @@ Options::HandleOptionArgumentCompletion
void
+OptionGroupOptions::Append (OptionGroup* group)
+{
+ const OptionDefinition* group_option_defs = group->GetDefinitions ();
+ const uint32_t group_option_count = group->GetNumDefinitions();
+ for (uint32_t i=0; i<group_option_count; ++i)
+ {
+ m_option_infos.push_back (OptionInfo (group, i));
+ m_option_defs.push_back (group_option_defs[i]);
+ }
+}
+
+void
OptionGroupOptions::Append (OptionGroup* group,
uint32_t src_mask,
uint32_t dst_mask)
OpenPOWER on IntegriCloud