From 3cd8d7b1727f06a701f41764c1109e5d321284b3 Mon Sep 17 00:00:00 2001 From: Gongyu Deng Date: Mon, 24 Aug 2020 17:34:32 +0200 Subject: [lldb] Remote disk file/directory completion for platform commands 1. Extended the gdb-remote communication related classes with disk file/directory completion functions; 2. Added two common completion functions RemoteDiskFiles and RemoteDiskDirectories based on the functions above; 3. Added completion for these commands: A. platform get-file ; B. platform put-file ; C. platform get-size ; D. platform settings -w ; E. platform open file . 4. Added related tests for client and server; 5. Updated docs/lldb-platform-packets.txt. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D85284 --- lldb/source/Utility/StringExtractorGDBRemote.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/source/Utility/StringExtractorGDBRemote.cpp') diff --git a/lldb/source/Utility/StringExtractorGDBRemote.cpp b/lldb/source/Utility/StringExtractorGDBRemote.cpp index cfe7577..2901500 100644 --- a/lldb/source/Utility/StringExtractorGDBRemote.cpp +++ b/lldb/source/Utility/StringExtractorGDBRemote.cpp @@ -233,6 +233,8 @@ StringExtractorGDBRemote::GetServerPacketType() const { return eServerPacketType_qPlatform_chmod; if (PACKET_MATCHES("qProcessInfo")) return eServerPacketType_qProcessInfo; + if (PACKET_STARTS_WITH("qPathComplete:")) + return eServerPacketType_qPathComplete; break; case 'Q': -- cgit v1.1