Use ADB pull to download modules from android target.

http://reviews.llvm.org/D9816

llvm-svn: 237640
diff --git a/lldb/source/Plugins/Platform/Android/AdbClient.h b/lldb/source/Plugins/Platform/Android/AdbClient.h
index 235fc56..783e580 100644
--- a/lldb/source/Plugins/Platform/Android/AdbClient.h
+++ b/lldb/source/Plugins/Platform/Android/AdbClient.h
@@ -16,6 +16,7 @@
 
 #include <list>
 #include <string>
+#include <vector>
 
 // Other libraries and framework includes
 // Project includes
@@ -49,25 +50,49 @@
     Error
     DeletePortForwarding (const uint16_t port);
 
+    Error
+    PullFile (const char *remote_file, const char *local_file);
+
 private:
     Error
     Connect ();
 
     void
-    SetDeviceID (const std::string& device_id);
+    SetDeviceID (const std::string &device_id);
 
     Error
-    SendMessage (const std::string &packet);
+    SendMessage (const std::string &packet, const bool reconnect = true);
 
     Error
     SendDeviceMessage (const std::string &packet);
 
     Error
-    ReadMessage (std::string &message);
+    SendSyncRequest (const char *request_id, const uint32_t data_len, const void *data);
+
+    Error
+    ReadSyncHeader (std::string &response_id, uint32_t &data_len);
+
+    Error
+    ReadMessage (std::vector<char> &message);
+
+    Error
+    GetResponseError (const char *response_id);
 
     Error
     ReadResponseStatus ();
 
+    Error
+    SwitchDeviceTransport ();
+
+    Error
+    Sync ();
+
+    Error
+    PullFileChunk (std::vector<char> &buffer, bool &eof);
+
+    Error
+    ReadAllBytes (void *buffer, size_t size);
+
     std::string m_device_id;
     ConnectionFileDescriptor m_conn;
 };