Use Android device serial number instead of hostname as a target identifier within module cache.
http://reviews.llvm.org/D8597
llvm-svn: 233202
diff --git a/lldb/source/Plugins/Platform/Android/AdbClient.h b/lldb/source/Plugins/Platform/Android/AdbClient.h
index 382e304..f372b24 100644
--- a/lldb/source/Plugins/Platform/Android/AdbClient.h
+++ b/lldb/source/Plugins/Platform/Android/AdbClient.h
@@ -21,6 +21,7 @@
// Project includes
#include "lldb/Core/Error.h"
+#include "lldb/Host/ConnectionFileDescriptor.h"
namespace lldb_private {
@@ -29,11 +30,14 @@
public:
using DeviceIDList = std::list<std::string>;
+ static Error
+ CreateByDeviceID (const char* device_id, AdbClient &adb);
+
AdbClient () = default;
explicit AdbClient (const std::string &device_id);
- void
- SetDeviceID (const std::string& device_id);
+ const std::string&
+ GetDeviceID() const;
Error
GetDevices (DeviceIDList &device_list);
@@ -48,6 +52,9 @@
Error
Connect ();
+ void
+ SetDeviceID (const std::string& device_id);
+
Error
SendMessage (const std::string &packet);