[Lldb-commits] [lldb] r257228 - Fix TestDebugBreak.py failure with gcc, for loop declarations are not allowed by default with gcc

Ying Chen via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 8 15:10:57 PST 2016


Author: chying
Date: Fri Jan  8 17:10:56 2016
New Revision: 257228

URL: http://llvm.org/viewvc/llvm-project?rev=257228&view=rev
Log:
Fix TestDebugBreak.py failure with gcc, for loop declarations are not allowed by default with gcc

- fix buildbot breakage after r257186
- move declaration outside of for loop

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c?rev=257228&r1=257227&r2=257228&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c Fri Jan  8 17:10:56 2016
@@ -8,8 +8,8 @@
 int
 bar(int const *foo)
 {
-    int count = 0;
-    for (int i = 0; i < 10; ++i)
+    int count = 0, i = 0;
+    for (; i < 10; ++i)
     {
         count += 1;
         BREAKPOINT_INTRINSIC();




More information about the lldb-commits mailing list