[Lldb-commits] [PATCH] D20312: Fix function name lookup in IRExecutionEngine.cpp.

Stephane Sezer via lldb-commits lldb-commits at lists.llvm.org
Mon May 16 16:27:05 PDT 2016


sas created this revision.
sas added a reviewer: spyffe.
sas added a subscriber: lldb-commits.

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

http://reviews.llvm.org/D20312

Files:
  source/Expression/IRExecutionUnit.cpp

Index: source/Expression/IRExecutionUnit.cpp
===================================================================
--- source/Expression/IRExecutionUnit.cpp
+++ source/Expression/IRExecutionUnit.cpp
@@ -125,7 +125,7 @@
 
     for (JittedFunction &function : m_jitted_functions)
     {
-        if (function.m_name.AsCString() != m_name.AsCString())
+        if (function.m_name.AsCString() == m_name.AsCString())
         {
             func_local_addr = function.m_local_addr;
             func_remote_addr = function.m_remote_addr;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20312.57418.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160516/0d901e7c/attachment.bin>


More information about the lldb-commits mailing list