summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Disassembler.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-09-06 23:11:45 +0000
committerGreg Clayton <gclayton@apple.com>2010-09-06 23:11:45 +0000
commit3c68757c45f6a0956a312286c5e079abdc8b5d24 (patch)
tree156924a9d9eb75d9a6d4d409a8b02f401d77a30f /lldb/source/Core/Disassembler.cpp
parentb0458249cfb60f98880eaae4dc0216fd289e3bf9 (diff)
downloadbcm5719-llvm-3c68757c45f6a0956a312286c5e079abdc8b5d24.tar.gz
bcm5719-llvm-3c68757c45f6a0956a312286c5e079abdc8b5d24.zip
Fixed an error that could occur during disassembly that could cause a function name to be printed before the first _and_ the second instruction of disassembly when there are two symbols -- one debug symbol and one linker symbol.
llvm-svn: 113181
Diffstat (limited to 'lldb/source/Core/Disassembler.cpp')
-rw-r--r--lldb/source/Core/Disassembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp
index 73a35196667..18786bd05ed 100644
--- a/lldb/source/Core/Disassembler.cpp
+++ b/lldb/source/Core/Disassembler.cpp
@@ -215,7 +215,7 @@ Disassembler::Disassemble
uint32_t resolved_mask = module->ResolveSymbolContextForAddress(addr, eSymbolContextEverything, sc);
if (resolved_mask)
{
- if (prev_sc.function != sc.function || prev_sc.symbol != sc.symbol)
+ if (!(prev_sc.function == sc.function || prev_sc.symbol == sc.symbol))
{
if (prev_sc.function || prev_sc.symbol)
strm.EOL();
OpenPOWER on IntegriCloud