diff options
| author | Mohit K. Bhakkad <mohit.bhakkad@gmail.com> | 2015-11-23 12:19:59 +0000 |
|---|---|---|
| committer | Mohit K. Bhakkad <mohit.bhakkad@gmail.com> | 2015-11-23 12:19:59 +0000 |
| commit | 5a998ed7a6befd975fb364b079e9c3e9a4c1e45f (patch) | |
| tree | 46fa01e8ab64bed3b7ab131e48cfd7930e073430 | |
| parent | 784fb78274ccf31e226f939b248efd9478b2ddb7 (diff) | |
| download | bcm5719-llvm-5a998ed7a6befd975fb364b079e9c3e9a4c1e45f.tar.gz bcm5719-llvm-5a998ed7a6befd975fb364b079e9c3e9a4c1e45f.zip | |
[LLDB][MIPS] Getting 0 index for H/W watchpoint is not necessarily an error
Reviewers: jaydeep.
Subscribers: bhushan, sagar, nitesh.jain, lldb-commits.
Differential Revision: http://reviews.llvm.org/D14860
llvm-svn: 253864
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp index 7549802733f..500aa96d2d3 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp @@ -1092,7 +1092,7 @@ GetVacantWatchIndex (struct pt_watch_regs *regs, lldb::addr_t addr, uint32_t siz } } } - return 0; + return LLDB_INVALID_INDEX32; } bool @@ -1221,7 +1221,7 @@ NativeRegisterContextLinux_mips64::SetHardwareWatchpoint ( int index = GetVacantWatchIndex (®s, addr, size, watch_flags, NumSupportedHardwareWatchpoints()); // New watchpoint doesn't fit - if (!index) + if (index == LLDB_INVALID_INDEX32) return LLDB_INVALID_INDEX32; |

