summaryrefslogtreecommitdiff
path: root/source/Plugins/Platform/Android/PlatformAndroid.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Plugins/Platform/Android/PlatformAndroid.h')
-rw-r--r--source/Plugins/Platform/Android/PlatformAndroid.h110
1 files changed, 42 insertions, 68 deletions
diff --git a/source/Plugins/Platform/Android/PlatformAndroid.h b/source/Plugins/Platform/Android/PlatformAndroid.h
index 6f7a87ca9fef..8417055733f6 100644
--- a/source/Plugins/Platform/Android/PlatformAndroid.h
+++ b/source/Plugins/Platform/Android/PlatformAndroid.h
@@ -24,95 +24,69 @@
namespace lldb_private {
namespace platform_android {
- class PlatformAndroid : public platform_linux::PlatformLinux
- {
- public:
- PlatformAndroid(bool is_host);
+class PlatformAndroid : public platform_linux::PlatformLinux {
+public:
+ PlatformAndroid(bool is_host);
- ~PlatformAndroid() override;
+ ~PlatformAndroid() override;
- static void
- Initialize ();
+ static void Initialize();
- static void
- Terminate ();
+ static void Terminate();
- //------------------------------------------------------------
- // lldb_private::PluginInterface functions
- //------------------------------------------------------------
- static lldb::PlatformSP
- CreateInstance (bool force, const ArchSpec *arch);
+ //------------------------------------------------------------
+ // lldb_private::PluginInterface functions
+ //------------------------------------------------------------
+ static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
- static ConstString
- GetPluginNameStatic (bool is_host);
+ static ConstString GetPluginNameStatic(bool is_host);
- static const char *
- GetPluginDescriptionStatic (bool is_host);
+ static const char *GetPluginDescriptionStatic(bool is_host);
- ConstString
- GetPluginName() override;
-
- uint32_t
- GetPluginVersion() override
- {
- return 1;
- }
+ ConstString GetPluginName() override;
- //------------------------------------------------------------
- // lldb_private::Platform functions
- //------------------------------------------------------------
+ uint32_t GetPluginVersion() override { return 1; }
- Error
- ConnectRemote (Args& args) override;
+ //------------------------------------------------------------
+ // lldb_private::Platform functions
+ //------------------------------------------------------------
- Error
- GetFile (const FileSpec& source,
- const FileSpec& destination) override;
+ Error ConnectRemote(Args &args) override;
- Error
- PutFile (const FileSpec& source,
- const FileSpec& destination,
- uint32_t uid = UINT32_MAX,
- uint32_t gid = UINT32_MAX) override;
-
- uint32_t
- GetSdkVersion();
+ Error GetFile(const FileSpec &source, const FileSpec &destination) override;
- bool
- GetRemoteOSVersion() override;
+ Error PutFile(const FileSpec &source, const FileSpec &destination,
+ uint32_t uid = UINT32_MAX, uint32_t gid = UINT32_MAX) override;
- Error
- DisconnectRemote () override;
+ uint32_t GetSdkVersion();
- uint32_t
- GetDefaultMemoryCacheLineSize() override;
+ bool GetRemoteOSVersion() override;
- protected:
- const char *
- GetCacheHostname () override;
+ Error DisconnectRemote() override;
- Error
- DownloadModuleSlice (const FileSpec &src_file_spec,
- const uint64_t src_offset,
- const uint64_t src_size,
- const FileSpec &dst_file_spec) override;
+ uint32_t GetDefaultMemoryCacheLineSize() override;
- Error
- DownloadSymbolFile (const lldb::ModuleSP& module_sp,
- const FileSpec& dst_file_spec) override;
+protected:
+ const char *GetCacheHostname() override;
- const char*
- GetLibdlFunctionDeclarations() const override;
+ Error DownloadModuleSlice(const FileSpec &src_file_spec,
+ const uint64_t src_offset, const uint64_t src_size,
+ const FileSpec &dst_file_spec) override;
- private:
- AdbClient::SyncService* GetSyncService (Error &error);
+ Error DownloadSymbolFile(const lldb::ModuleSP &module_sp,
+ const FileSpec &dst_file_spec) override;
- std::unique_ptr<AdbClient::SyncService> m_adb_sync_svc;
- std::string m_device_id;
- uint32_t m_sdk_version;
+ const char *GetLibdlFunctionDeclarations() const override;
- DISALLOW_COPY_AND_ASSIGN (PlatformAndroid);
- };
+private:
+ AdbClient::SyncService *GetSyncService(Error &error);
+
+ std::unique_ptr<AdbClient::SyncService> m_adb_sync_svc;
+ std::string m_device_id;
+ uint32_t m_sdk_version;
+
+ DISALLOW_COPY_AND_ASSIGN(PlatformAndroid);
+};
} // namespace platofor_android
} // namespace lldb_private