[Lldb-commits] [PATCH] D14860: [LLDB][MIPS] Getting 0 index for h/w watchpoint is not necessarily an error
Mohit Bhakkad via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 19 22:35:20 PST 2015
mohit.bhakkad created this revision.
mohit.bhakkad added reviewers: bhushan, jaydeep.
mohit.bhakkad added subscribers: lldb-commits, sagar, nitesh.jain.
mohit.bhakkad set the repository for this revision to rL LLVM.
Index for H/W watchpoint regsisters starts from 0, so considering 0 as failure is wrong.
Repository:
rL LLVM
http://reviews.llvm.org/D14860
Files:
source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
Index: source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
===================================================================
--- source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
+++ source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
@@ -1092,7 +1092,7 @@
}
}
}
- return 0;
+ return LLDB_INVALID_INDEX32;
}
bool
@@ -1221,7 +1221,7 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14860.40744.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151120/20700abc/attachment.bin>
More information about the lldb-commits
mailing list