summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorStephen Wilson <wilsons@start.ca>2010-07-20 18:41:11 +0000
committerStephen Wilson <wilsons@start.ca>2010-07-20 18:41:11 +0000
commit4ab47682bb3abd4ffda70a8fd260fe8a20e81722 (patch)
treed71b694a42c9b46058e976d9047fe9a96617954e /lldb/source/Target/Process.cpp
parent645767aecaff7adbbfac51fd5f370dc5e47bca43 (diff)
downloadbcm5719-llvm-4ab47682bb3abd4ffda70a8fd260fe8a20e81722.tar.gz
bcm5719-llvm-4ab47682bb3abd4ffda70a8fd260fe8a20e81722.zip
Fix assertion conditions.
llvm-svn: 108879
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 10312daf6c9..31f801f7695 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -699,7 +699,7 @@ Process::DisableSoftwareBreakpoint (BreakpointSite *bp_site)
{
// 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 @@ Process::DisableSoftwareBreakpoint (BreakpointSite *bp_site)
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)
{
OpenPOWER on IntegriCloud