[Lldb-commits] [lldb] r271863 - Fix function name lookup in IRExecutionEngine.cpp.

Stephane Sezer via lldb-commits lldb-commits at lists.llvm.org
Sun Jun 5 19:50:46 PDT 2016


Author: sas
Date: Sun Jun  5 21:50:46 2016
New Revision: 271863

URL: http://llvm.org/viewvc/llvm-project?rev=271863&view=rev
Log:
Fix function name lookup in IRExecutionEngine.cpp.

Summary:
Without this commit, when `log enable lldb expr` is enabled, the
disassembly of JIT'ed code is never displayed.

Reviewers: spyffe, clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D20312

Modified:
    lldb/trunk/source/Expression/IRExecutionUnit.cpp

Modified: lldb/trunk/source/Expression/IRExecutionUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRExecutionUnit.cpp?rev=271863&r1=271862&r2=271863&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRExecutionUnit.cpp (original)
+++ lldb/trunk/source/Expression/IRExecutionUnit.cpp Sun Jun  5 21:50:46 2016
@@ -125,7 +125,7 @@ IRExecutionUnit::DisassembleFunction (St
 
     for (JittedFunction &function : m_jitted_functions)
     {
-        if (function.m_name.AsCString() != m_name.AsCString())
+        if (function.m_name == m_name)
         {
             func_local_addr = function.m_local_addr;
             func_remote_addr = function.m_remote_addr;




More information about the lldb-commits mailing list