summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/Android/AdbClient.h
diff options
context:
space:
mode:
authorOleksiy Vyalov <ovyalov@google.com>2016-07-06 17:02:42 +0000
committerOleksiy Vyalov <ovyalov@google.com>2016-07-06 17:02:42 +0000
commitd6a143fcbfe28eaf4c9afe5f3dfca87e3929042a (patch)
treea303a3b3d596d7800a0b97a81a5665cda07b50ef /lldb/source/Plugins/Platform/Android/AdbClient.h
parentdafc5d75ea166a6aa4cbcfa1abe8c8beab6361a1 (diff)
downloadbcm5719-llvm-d6a143fcbfe28eaf4c9afe5f3dfca87e3929042a.tar.gz
bcm5719-llvm-d6a143fcbfe28eaf4c9afe5f3dfca87e3929042a.zip
Fix ADB client disconnect issues.
http://reviews.llvm.org/D22029 llvm-svn: 274638
Diffstat (limited to 'lldb/source/Plugins/Platform/Android/AdbClient.h')
-rw-r--r--lldb/source/Plugins/Platform/Android/AdbClient.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Platform/Android/AdbClient.h b/lldb/source/Plugins/Platform/Android/AdbClient.h
index b336a15634e..de38310fc56 100644
--- a/lldb/source/Plugins/Platform/Android/AdbClient.h
+++ b/lldb/source/Plugins/Platform/Android/AdbClient.h
@@ -14,6 +14,7 @@
// C++ Includes
+#include <functional>
#include <list>
#include <memory>
#include <string>
@@ -57,6 +58,9 @@ public:
Error
Stat (const FileSpec &remote_file, uint32_t &mode, uint32_t &size, uint32_t &mtime);
+ bool
+ IsConnected () const;
+
private:
explicit SyncService (std::unique_ptr<Connection> &&conn);
@@ -72,8 +76,19 @@ public:
Error
ReadAllBytes (void *buffer, size_t size);
+ Error
+ internalPullFile (const FileSpec &remote_file, const FileSpec &local_file);
+
+ Error
+ internalPushFile (const FileSpec &local_file, const FileSpec &remote_file);
+
+ Error
+ internalStat (const FileSpec &remote_file, uint32_t &mode, uint32_t &size, uint32_t &mtime);
+
+ Error
+ executeCommand (const std::function<Error()> &cmd);
- const std::unique_ptr<Connection> m_conn;
+ std::unique_ptr<Connection> m_conn;
};
static Error
@@ -118,7 +133,7 @@ private:
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);
OpenPOWER on IntegriCloud