[Lldb-commits] [lldb] r191457 - Fix the thread jump test case for 32-bit inferiors. A jump was going back to a function call using a source line number. However, the parameters being passed to the function were setup before the instruction we jumped to. In other words, the source line was associated with assembly after the function parameters had been setup for the function to be called.

Matt Kopec Matt.Kopec at intel.com
Thu Sep 26 13:54:17 PDT 2013


Author: mkopec
Date: Thu Sep 26 15:54:17 2013
New Revision: 191457

URL: http://llvm.org/viewvc/llvm-project?rev=191457&view=rev
Log:
Fix the thread jump test case for 32-bit inferiors. A jump was going back to a function call using a source line number. However, the parameters being passed to the function were setup before the instruction we jumped to. In other words, the source line was associated with assembly after the function parameters had been setup for the function to be called.

Modified:
    lldb/trunk/test/functionalities/thread/jump/main.cpp

Modified: lldb/trunk/test/functionalities/thread/jump/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/jump/main.cpp?rev=191457&r1=191456&r2=191457&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/jump/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/jump/main.cpp Thu Sep 26 15:54:17 2013
@@ -26,9 +26,10 @@ int main ()
 {
     int i;
     double j;
-
-    i = min(4, 5); // 3rd marker
-    j = min(7.0, 8.0); // 4th marker
+    int min_i_a = 4, min_i_b = 5;
+    double min_j_a = 7.0, min_j_b = 8.0;
+    i = min(min_i_a, min_i_b); // 3rd marker
+    j = min(min_j_a, min_j_b); // 4th marker
 
     return 0;
 }





More information about the lldb-commits mailing list