Index: source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp =================================================================== --- source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp +++ source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp @@ -550,6 +550,18 @@ UpdateBaseAddrIfNecessary(entry, file_path); + // On Android L (5.0, 5.1) the base address for the lirbary is sometimes not + // reported. Attempt to discover it based on the load address of the object + // file. + if (entry.base_addr == 0) { + lldb::addr_t load_addr = LLDB_INVALID_ADDRESS; + bool is_loaded = false; + Error error = + m_process->GetFileLoadAddress(entry.file_spec, is_loaded, load_addr); + if (error.Success() && is_loaded) + entry.base_addr = load_addr; + } + return true; }