Corrects return values and typos in Arm watchpoint code

This is just a trivial patch that corrects a couple of return value account to function's return type.
Also corrects typo in hardware breakpoint handler.

llvm-svn: 251269
This commit is contained in:
Omair Javaid 2015-10-25 23:18:35 +00:00
parent 4dc909cbed
commit 4aa984c1a2
1 changed files with 4 additions and 4 deletions

View File

@ -440,7 +440,7 @@ NativeRegisterContextLinux_arm::SetHardwareBreakpoint (lldb::addr_t addr, size_t
if (bp_index == LLDB_INVALID_INDEX32)
return LLDB_INVALID_INDEX32;
// Add new or update existing watchpoint
// Add new or update existing breakpoint
if ((m_hbr_regs[bp_index].control & 1) == 0)
{
m_hbr_regs[bp_index].address = addr;
@ -473,7 +473,7 @@ NativeRegisterContextLinux_arm::ClearHardwareBreakpoint (uint32_t hw_idx)
error = ReadHardwareDebugInfo ();
if (error.Fail())
return LLDB_INVALID_INDEX32;
return false;
if (hw_idx >= m_max_hbp_supported)
return false;
@ -494,7 +494,7 @@ NativeRegisterContextLinux_arm::ClearHardwareBreakpoint (uint32_t hw_idx)
WriteHardwareDebugRegs(eDREGTypeBREAK, hw_idx);
if (error.Fail())
return LLDB_INVALID_INDEX32;
return false;
return true;
}
@ -636,7 +636,7 @@ NativeRegisterContextLinux_arm::ClearHardwareWatchpoint (uint32_t wp_index)
error = ReadHardwareDebugInfo ();
if (error.Fail())
return LLDB_INVALID_INDEX32;
return false;
if (wp_index >= m_max_hwp_supported)
return false;