[llvm-commits] [llvm] r156840 - /llvm/trunk/tools/llvm-objdump/MachODump.cpp

Kevin Enderby enderby at apple.com
Tue May 15 11:57:14 PDT 2012


Author: enderby
Date: Tue May 15 13:57:14 2012
New Revision: 156840

URL: http://llvm.org/viewvc/llvm-project?rev=156840&view=rev
Log:
Fixed a bug in llvm-objdump when disassembling using -macho option for a binary
that has more than one symbol.  The last symbol was not being disassembled to
the end of the section.

Modified:
    llvm/trunk/tools/llvm-objdump/MachODump.cpp

Modified: llvm/trunk/tools/llvm-objdump/MachODump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/MachODump.cpp?rev=156840&r1=156839&r2=156840&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/MachODump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/MachODump.cpp Tue May 15 13:57:14 2012
@@ -430,7 +430,7 @@
 
       // Stop disassembling either at the beginning of the next symbol or at
       // the end of the section.
-      bool containsNextSym = true;
+      bool containsNextSym = false;
       uint64_t NextSym = 0;
       uint64_t NextSymIdx = SymIdx+1;
       while (Symbols.size() > NextSymIdx) {





More information about the llvm-commits mailing list