Skip to content

Commit eda1699

Browse files
authored
[lldb] Enable the use of dladdr() on Android (#124187)
dladdr() was introduced 15 years ago.
1 parent a6cfde6 commit eda1699

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lldb/source/Host/common/Host.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,15 +352,13 @@ bool Host::ResolveExecutableInBundle(FileSpec &file) { return false; }
352352

353353
FileSpec Host::GetModuleFileSpecForHostAddress(const void *host_addr) {
354354
FileSpec module_filespec;
355-
#if !defined(__ANDROID__)
356355
Dl_info info;
357356
if (::dladdr(host_addr, &info)) {
358357
if (info.dli_fname) {
359358
module_filespec.SetFile(info.dli_fname, FileSpec::Style::native);
360359
FileSystem::Instance().Resolve(module_filespec);
361360
}
362361
}
363-
#endif
364362
return module_filespec;
365363
}
366364

0 commit comments

Comments
 (0)