[Lldb-commits] [lldb] r161704 - /lldb/trunk/source/Commands/CommandObjectProcess.cpp
Jim Ingham
jingham at apple.com
Fri Aug 10 14:48:41 PDT 2012
Author: jingham
Date: Fri Aug 10 16:48:41 2012
New Revision: 161704
URL: http://llvm.org/viewvc/llvm-project?rev=161704&view=rev
Log:
Use the file completer for "process launch" arguments.
<rdar://problem/11274012>
Modified:
lldb/trunk/source/Commands/CommandObjectProcess.cpp
Modified: lldb/trunk/source/Commands/CommandObjectProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectProcess.cpp?rev=161704&r1=161703&r2=161704&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectProcess.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectProcess.cpp Fri Aug 10 16:48:41 2012
@@ -61,6 +61,30 @@
{
}
+ int
+ HandleArgumentCompletion (Args &input,
+ int &cursor_index,
+ int &cursor_char_position,
+ OptionElementVector &opt_element_vector,
+ int match_start_point,
+ int max_return_elements,
+ bool &word_complete,
+ StringList &matches)
+ {
+ std::string completion_str (input.GetArgumentAtIndex(cursor_index));
+ completion_str.erase (cursor_char_position);
+
+ CommandCompletions::InvokeCommonCompletionCallbacks (m_interpreter,
+ CommandCompletions::eDiskFileCompletion,
+ completion_str.c_str(),
+ match_start_point,
+ max_return_elements,
+ NULL,
+ word_complete,
+ matches);
+ return matches.GetSize();
+ }
+
Options *
GetOptions ()
{
More information about the lldb-commits
mailing list