[Lldb-commits] [PATCH] D58405: Merge target triple into module triple when constructing module from memory

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 19 15:30:24 PST 2019


xiaobai updated this revision to Diff 187460.
xiaobai added a comment.

Minor change


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58405/new/

https://reviews.llvm.org/D58405

Files:
  source/Core/Module.cpp


Index: source/Core/Module.cpp
===================================================================
--- source/Core/Module.cpp
+++ source/Core/Module.cpp
@@ -309,6 +309,10 @@
           // file's architecture since it might differ in vendor/os if some
           // parts were unknown.
           m_arch = m_objfile_sp->GetArchitecture();
+
+          // Augment the arch with the target's information in case
+          // we are unable to extract the os/environment from memory.
+          m_arch.MergeFrom(process_sp->GetTarget().GetArchitecture());
         } else {
           error.SetErrorString("unable to find suitable object file plug-in");
         }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58405.187460.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190219/b91b9380/attachment.bin>


More information about the lldb-commits mailing list