summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-02-26 22:15:16 +0000
committerChaoren Lin <chaorenl@google.com>2015-02-26 22:15:16 +0000
commitb6cd5fe918f3cf3b7b9c385dfa7f48ae00b36d7d (patch)
tree9feea996e1fe8bca0230c7ff3bc09de774b831bc /lldb/source/Core/Module.cpp
parente8fd00dab005c400aab9a3054a83e0a641632814 (diff)
downloadbcm5719-llvm-b6cd5fe918f3cf3b7b9c385dfa7f48ae00b36d7d.tar.gz
bcm5719-llvm-b6cd5fe918f3cf3b7b9c385dfa7f48ae00b36d7d.zip
Fix Bug 20400
Summary: http://llvm.org/bugs/show_bug.cgi?id=20400 The default triple of i686-pc-linux-gnu for 32 bit linux targets is compatible but not necessarily identical to the inferior binaries. Applying Azat Khuzhin's solution of using ArchSpec::IsCompatibleMatch() instead of ArchSpec::IsExactMatch() when comparing ObjectFile and Modules architecture. Reviewers: vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7897 llvm-svn: 230694
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 891bd87a20d..bdf71714e86 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -1608,7 +1608,7 @@ Module::SetArchitecture (const ArchSpec &new_arch)
m_arch = new_arch;
return true;
}
- return m_arch.IsExactMatch(new_arch);
+ return m_arch.IsCompatibleMatch(new_arch);
}
bool
OpenPOWER on IntegriCloud