#include "lldb/Core/Module.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Core/Section.h"
#include "lldb/Core/ValueObject.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Scalar.h"
#include "lldb/Utility/UriParser.h"
#include "AdbClient.h"
#include "PlatformAndroid.h"
#include "PlatformAndroidRemoteGDBServer.h"
#include "lldb/Target/Target.h"
#include <optional>
usingnamespacelldb;
usingnamespacelldb_private;
usingnamespacelldb_private::platform_android;
usingnamespacestd::chrono;
LLDB_PLUGIN_DEFINE(…)
namespace {
#define LLDB_PROPERTIES_android
#include "PlatformAndroidProperties.inc"
enum { … };
class PluginProperties : public Properties { … };
static PluginProperties &GetGlobalProperties() { … }
uint32_t g_initialize_count = …;
const unsigned int g_android_default_cache_size = …;
}
void PlatformAndroid::Initialize() { … }
void PlatformAndroid::Terminate() { … }
PlatformSP PlatformAndroid::CreateInstance(bool force, const ArchSpec *arch) { … }
void PlatformAndroid::DebuggerInitialize(Debugger &debugger) { … }
PlatformAndroid::PlatformAndroid(bool is_host)
: … { … }
llvm::StringRef PlatformAndroid::GetPluginDescriptionStatic(bool is_host) { … }
Status PlatformAndroid::ConnectRemote(Args &args) { … }
Status PlatformAndroid::GetFile(const FileSpec &source,
const FileSpec &destination) { … }
Status PlatformAndroid::PutFile(const FileSpec &source,
const FileSpec &destination, uint32_t uid,
uint32_t gid) { … }
const char *PlatformAndroid::GetCacheHostname() { … }
Status PlatformAndroid::DownloadModuleSlice(const FileSpec &src_file_spec,
const uint64_t src_offset,
const uint64_t src_size,
const FileSpec &dst_file_spec) { … }
Status PlatformAndroid::DisconnectRemote() { … }
uint32_t PlatformAndroid::GetDefaultMemoryCacheLineSize() { … }
uint32_t PlatformAndroid::GetSdkVersion() { … }
Status PlatformAndroid::DownloadSymbolFile(const lldb::ModuleSP &module_sp,
const FileSpec &dst_file_spec) { … }
bool PlatformAndroid::GetRemoteOSVersion() { … }
llvm::StringRef
PlatformAndroid::GetLibdlFunctionDeclarations(lldb_private::Process *process) { … }
PlatformAndroid::AdbClientUP PlatformAndroid::GetAdbClient(Status &error) { … }
llvm::StringRef PlatformAndroid::GetPropertyPackageName() { … }
std::string PlatformAndroid::GetRunAs() { … }
AdbClient::SyncService *PlatformAndroid::GetSyncService(Status &error) { … }