[Lldb-commits] [lldb] r274215 - Correct watchpoint size test failure on certain devices

Omair Javaid via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 30 00:09:46 PDT 2016


Author: omjavaid
Date: Thu Jun 30 02:09:46 2016
New Revision: 274215

URL: http://llvm.org/viewvc/llvm-project?rev=274215&view=rev
Log:
Correct watchpoint size test failure on certain devices

I overlooked the possibility of certain targets translating increment statement into a read and write.
In this case we replace increment statement with an assignment.



Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c?rev=274215&r1=274214&r2=274215&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/watchpoint/watchpoint_size/main.c Thu Jun 30 02:09:46 2016
@@ -27,7 +27,7 @@ int main(int argc, char** argv) {
     {
         printf("About to write byteArray[%d] ...\n", i); // About to write byteArray
         pad0++;
-        byteArray[i]++;
+        byteArray[i] = 7;
         pad1++;
         localByte = byteArray[i]; // Here onwards we should'nt be stopped in loop
         byteArray[i]++;
@@ -41,7 +41,7 @@ int main(int argc, char** argv) {
     {
         printf("About to write wordArray[%d] ...\n", i); // About to write wordArray
         pad0++;
-        wordArray[i]++;
+        wordArray[i] = 7;
         pad1++;
         localWord = wordArray[i]; // Here onwards we should'nt be stopped in loop
         wordArray[i]++;
@@ -55,7 +55,7 @@ int main(int argc, char** argv) {
     {
         printf("About to write dwordArray[%d] ...\n", i); // About to write dwordArray
         pad0++;
-        dwordArray[i]++;
+        dwordArray[i] = 7;
         pad1++;
         localDword = dwordArray[i]; // Here onwards we shouldn't be stopped in loop
         dwordArray[i]++;




More information about the lldb-commits mailing list