diff options
author | Greg Clayton <gclayton@apple.com> | 2012-09-27 22:26:11 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-09-27 22:26:11 +0000 |
commit | b5f0feabae967ab27efa82ad1a54536fc5671d22 (patch) | |
tree | 9b5a1b5aaf6379c843d554f81819972fae0d804d /lldb/source/Interpreter/OptionValueFileSpec.cpp | |
parent | daa1c74da8e30a2c2dfab0ad64ade8f2cd25a773 (diff) | |
download | bcm5719-llvm-b5f0feabae967ab27efa82ad1a54536fc5671d22.tar.gz bcm5719-llvm-b5f0feabae967ab27efa82ad1a54536fc5671d22.zip |
Wrapped up the work I am going to do for now for the "add-dsym" or "target symfile add" command.
We can now do:
Specify a path to a debug symbols file:
(lldb) add-dsym <path-to-dsym>
Go and download the dSYM file for the "libunc.dylib" module in your target:
(lldb) add-dsym --shlib libunc.dylib
Go and download the dSYM given a UUID:
(lldb) add-dsym --uuid <UUID>
Go and download the dSYM file for the current frame:
(lldb) add-dsym --frame
llvm-svn: 164806
Diffstat (limited to 'lldb/source/Interpreter/OptionValueFileSpec.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionValueFileSpec.cpp | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/OptionValueFileSpec.cpp b/lldb/source/Interpreter/OptionValueFileSpec.cpp index 03608753658..62b80bc9f8b 100644 --- a/lldb/source/Interpreter/OptionValueFileSpec.cpp +++ b/lldb/source/Interpreter/OptionValueFileSpec.cpp @@ -21,6 +21,35 @@ using namespace lldb; using namespace lldb_private; + +OptionValueFileSpec::OptionValueFileSpec () : + OptionValue(), + m_current_value (), + m_default_value (), + m_data_sp(), + m_completion_mask (CommandCompletions::eDiskFileCompletion) +{ +} + +OptionValueFileSpec::OptionValueFileSpec (const FileSpec &value) : + OptionValue(), + m_current_value (value), + m_default_value (value), + m_data_sp(), + m_completion_mask (CommandCompletions::eDiskFileCompletion) +{ +} + +OptionValueFileSpec::OptionValueFileSpec (const FileSpec ¤t_value, + const FileSpec &default_value) : + OptionValue(), + m_current_value (current_value), + m_default_value (default_value), + m_data_sp(), + m_completion_mask (CommandCompletions::eDiskFileCompletion) +{ +} + void OptionValueFileSpec::DumpValue (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) { @@ -101,7 +130,7 @@ OptionValueFileSpec::AutoComplete (CommandInterpreter &interpreter, word_complete = false; matches.Clear(); CommandCompletions::InvokeCommonCompletionCallbacks (interpreter, - CommandCompletions::eDiskFileCompletion, + m_completion_mask, s, match_start_point, max_return_elements, |