[Lldb-commits] [lldb] r145511 - /lldb/trunk/source/Core/Disassembler.cpp

Greg Clayton gclayton at apple.com
Wed Nov 30 11:36:43 PST 2011


Author: gclayton
Date: Wed Nov 30 13:36:42 2011
New Revision: 145511

URL: http://llvm.org/viewvc/llvm-project?rev=145511&view=rev
Log:
Make sure that we print out function or symbol information. If we disassembled
a symbol, were weren't showing the "<module>`<symbol>" header.


Modified:
    lldb/trunk/source/Core/Disassembler.cpp

Modified: lldb/trunk/source/Core/Disassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Disassembler.cpp?rev=145511&r1=145510&r2=145511&view=diff
==============================================================================
--- lldb/trunk/source/Core/Disassembler.cpp (original)
+++ lldb/trunk/source/Core/Disassembler.cpp Wed Nov 30 13:36:42 2011
@@ -384,7 +384,7 @@
                             }
                         }
                     }
-                    else if (!(prev_sc.function == sc.function || prev_sc.symbol == sc.symbol))
+                    else if ((sc.function || sc.symbol) && (sc.function != prev_sc.function || sc.symbol != prev_sc.symbol))
                     {
                         if (prev_sc.function || prev_sc.symbol)
                             strm.EOL();





More information about the lldb-commits mailing list