diff options
author | Omair Javaid <omair.javaid@linaro.org> | 2015-10-25 23:18:35 +0000 |
---|---|---|
committer | Omair Javaid <omair.javaid@linaro.org> | 2015-10-25 23:18:35 +0000 |
commit | 4aa984c1a2c4e240b3f9cac5f0439fcde436a034 (patch) | |
tree | 58299c30b3e575782ee6193fb7c76a4621688dfe | |
parent | 4dc909cbed99c9576dd26146017bae1e22654690 (diff) | |
download | bcm5719-llvm-4aa984c1a2c4e240b3f9cac5f0439fcde436a034.tar.gz bcm5719-llvm-4aa984c1a2c4e240b3f9cac5f0439fcde436a034.zip |
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
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp index 754825438f6..e9f52a75e1a 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp @@ -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; |