[Lldb-commits] [lldb] eda1699 - [lldb] Enable the use of dladdr() on Android (#124187)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 24 00:19:38 PST 2025
Author: Brad Smith
Date: 2025-01-24T03:19:34-05:00
New Revision: eda16991adeb078647b2d239fcf666ddece5c30a
URL: https://github.com/llvm/llvm-project/commit/eda16991adeb078647b2d239fcf666ddece5c30a
DIFF: https://github.com/llvm/llvm-project/commit/eda16991adeb078647b2d239fcf666ddece5c30a.diff
LOG: [lldb] Enable the use of dladdr() on Android (#124187)
dladdr() was introduced 15 years ago.
Added:
Modified:
lldb/source/Host/common/Host.cpp
Removed:
################################################################################
diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp
index 7b2bae74e196fe..fdb623667bc251 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -352,7 +352,6 @@ bool Host::ResolveExecutableInBundle(FileSpec &file) { return false; }
FileSpec Host::GetModuleFileSpecForHostAddress(const void *host_addr) {
FileSpec module_filespec;
-#if !defined(__ANDROID__)
Dl_info info;
if (::dladdr(host_addr, &info)) {
if (info.dli_fname) {
@@ -360,7 +359,6 @@ FileSpec Host::GetModuleFileSpecForHostAddress(const void *host_addr) {
FileSystem::Instance().Resolve(module_filespec);
}
}
-#endif
return module_filespec;
}
More information about the lldb-commits
mailing list