[Lldb-commits] [lldb] [lldb] Enable the use of dladdr() on Android (PR #124187)
Brad Smith via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 23 12:44:17 PST 2025
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/124187
dladdr() was introduced 15 years ago.
>From e70b8c1b451d40492b3b4b445ad503142d5b0838 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Thu, 23 Jan 2025 15:39:43 -0500
Subject: [PATCH] [lldb] Enable the use of dladdr() on Android
dladdr() was introduced 15 years ago.
---
lldb/source/Host/common/Host.cpp | 2 --
1 file changed, 2 deletions(-)
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