HomePhabricator

Merge target triple into module triple when constructing module from memory

Description

Merge target triple into module triple when constructing module from memory

Summary:
While debugging an android process remotely from a windows machine, I
noticed that the modules constructed from an object file in memory only had
information about the architecture. Without knowledge of the OS or environment,
expression evaluation sometimes leads to incorrectly generated code or a
debugger crash. While we cannot know for certain what triple a module
constructed from an in-memory object file will have, we can use the
triple from the target to try and fill in the missing details.

Reviewers: clayborg, zturner, JDevlieghere, compnerd, aprantl, labath

Subscribers: jdoerfert, lldb-commits

Differential Revision: https://reviews.llvm.org/D58405

Details

Committed
xiaobaiFeb 20 2019, 3:12 PM
Differential Revision
D58405: Merge target triple into module triple when constructing module from memory
Branches
Unknown
Tags
Unknown