[Lldb-commits] [PATCH] D22219: Support loading files even when incorrect file name specified by the linker

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 11 07:20:47 PDT 2016


tberghammer created this revision.
tberghammer added reviewers: labath, clayborg.
tberghammer added a subscriber: lldb-commits.
Herald added subscribers: danalbert, tberghammer.

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.

http://reviews.llvm.org/D22219

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22219.63508.patch
Type: text/x-patch
Size: 9479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160711/4cab7439/attachment-0001.bin>


More information about the lldb-commits mailing list