Change the kdp-remote alias to require a hostname (instead of allowing a zero-length...
authorJason Molenda <jmolenda@apple.com>
Thu, 27 Sep 2012 02:47:55 +0000 (02:47 +0000)
committerJason Molenda <jmolenda@apple.com>
Thu, 27 Sep 2012 02:47:55 +0000 (02:47 +0000)
llvm-svn: 164752

lldb/source/Interpreter/CommandInterpreter.cpp

index 29ebb69..52ba414 100644 (file)
@@ -485,7 +485,7 @@ CommandInterpreter::LoadCommandDictionary ()
     if (connect_kdp_remote_cmd_ap.get())
     {
         if (connect_kdp_remote_cmd_ap->AddRegexCommand("^([^:]+:[[:digit:]]+)$", "process connect --plugin kdp-remote udp://%1") &&
-            connect_kdp_remote_cmd_ap->AddRegexCommand("^(.*)$", "process connect --plugin kdp-remote udp://%1:41139"))
+            connect_kdp_remote_cmd_ap->AddRegexCommand("^(.+)$", "process connect --plugin kdp-remote udp://%1:41139"))
         {
             CommandObjectSP command_sp(connect_kdp_remote_cmd_ap.release());
             m_command_dict[command_sp->GetCommandName ()] = command_sp;