[Lldb-commits] [lldb] r108879 - /lldb/trunk/source/Target/Process.cpp

Stephen Wilson wilsons at start.ca
Tue Jul 20 11:41:11 PDT 2010


Author: wilsons
Date: Tue Jul 20 13:41:11 2010
New Revision: 108879

URL: http://llvm.org/viewvc/llvm-project?rev=108879&view=rev
Log:
Fix assertion conditions.

Modified:
    lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=108879&r1=108878&r2=108879&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Tue Jul 20 13:41:11 2010
@@ -699,7 +699,7 @@
         {
             // Clear a software breakoint instruction
             uint8_t curr_break_op[8];
-            assert (sizeof(curr_break_op) < break_op_size);
+            assert (break_op_size <= sizeof(curr_break_op));
             bool break_op_found = false;
 
             // Read the breakpoint opcode
@@ -729,7 +729,7 @@
                 if (verify)
                 {
                     uint8_t verify_opcode[8];
-                    assert (sizeof(verify_opcode) < break_op_size);
+                    assert (break_op_size < sizeof(verify_opcode));
                     // Verify that our original opcode made it back to the inferior
                     if (DoReadMemory (bp_addr, verify_opcode, break_op_size, error) == break_op_size)
                     {





More information about the lldb-commits mailing list