[Lldb-commits] [lldb] r184797 - Fixed the instruction emulation so that it doesn't

Sean Callanan scallanan at apple.com
Mon Jun 24 17:32:46 PDT 2013


Author: spyffe
Date: Mon Jun 24 19:32:45 2013
New Revision: 184797

URL: http://llvm.org/viewvc/llvm-project?rev=184797&view=rev
Log:
Fixed the instruction emulation so that it doesn't
print to standard output as part of normal
operation.

<rdar://problem/14247606>

Modified:
    lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp

Modified: lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp?rev=184797&r1=184796&r2=184797&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Mon Jun 24 19:32:45 2013
@@ -50,7 +50,9 @@ CountITSize (uint32_t ITMask) {
     uint32_t TZ = llvm::countTrailingZeros(ITMask);
     if (TZ > 3)
     {
+#ifdef LLDB_CONFIGURATION_DEBUG
         printf("Encoding error: IT Mask '0000'\n");
+#endif
         return 0;
     }
     return (4 - TZ);
@@ -67,12 +69,16 @@ bool ITSession::InitIT(uint32_t bits7_0)
     unsigned short FirstCond = Bits32(bits7_0, 7, 4);
     if (FirstCond == 0xF)
     {
+#ifdef LLDB_CONFIGURATION_DEBUG
         printf("Encoding error: IT FirstCond '1111'\n");
+#endif
         return false;
     }
     if (FirstCond == 0xE && ITCounter != 1)
     {
+#ifdef LLDB_CONFIGURATION_DEBUG
         printf("Encoding error: IT FirstCond '1110' && Mask != '1000'\n");
+#endif
         return false;
     }
 





More information about the lldb-commits mailing list