Support loading files even when incorrect file name specified by the linker
authorTamas Berghammer <tberghammer@google.com>
Fri, 22 Jul 2016 12:55:35 +0000 (12:55 +0000)
committerTamas Berghammer <tberghammer@google.com>
Fri, 22 Jul 2016 12:55:35 +0000 (12:55 +0000)
commitd7d69f80836c8485c83ba55d2e5e5bac4154d975
treecf5d46fb847e559bcfaaaf892a908de4a9736aa4
parent29333c9de6c7ab6ad1ca09d19d011927704db0c5
Support loading files even when incorrect file name specified by the linker

"Incorrect" file name seen on Android whene the main executable is
called "app_process32" (or 64) but the linker specifies the package
name (e.g. com.android.calculator2). Additionally it can be present
in case of some linker bugs.

This CL adds logic to try to fetch the correct file name from the proc
file system based on the base address sepcified by the linker in case
we are failed to load the module by name.

Differential revision: http://reviews.llvm.org/D22219

llvm-svn: 276411
lldb/docs/lldb-gdb-remote.txt
lldb/include/lldb/API/SBMemoryRegionInfo.h
lldb/include/lldb/Target/MemoryRegionInfo.h
lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
lldb/source/API/SBMemoryRegionInfo.cpp
lldb/source/Core/DynamicLoader.cpp
lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp