[Lldb-commits] [PATCH] D29215: [LLDB][MIPS] Fix TestMiniDumpNew

Nitesh Jain via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 27 01:47:53 PST 2017

nitesh.jain added a comment.

Hi Labath,

I think on window ur host architecture is x86_64 hence when TargetList::CreateTargetInternal(..)  is call, at line 269 the code is

  if (!prefer_platform_arch && arch.IsValid()) {
    if (!platform_sp->IsCompatibleArchitecture(arch, false, &platform_arch)) {
      platform_sp = Platform::GetPlatformForArchitecture(arch, &platform_arch);
      if (!is_dummy_target && platform_sp)

The line platform_sp->IsCompatibleArchitecture(arch, false, &platform_arch) will be true , if ur host architecture is x86(which is ur case). In our case since host architecture is Mips it will return false. hence Platform::GetPlatformForArchitecture(arch, &platform_arch) will be set platform to remote-linux



More information about the lldb-commits mailing list