summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/thread
diff options
context:
space:
mode:
authorMatt Kopec <Matt.Kopec@intel.com>2013-09-26 20:54:17 +0000
committerMatt Kopec <Matt.Kopec@intel.com>2013-09-26 20:54:17 +0000
commitcc64cc1773f2cf08e1c321a59659a9ccd2206338 (patch)
treec3485916ae1eb3e952deec03dc4a7a99b3fa34e5 /lldb/test/functionalities/thread
parentbb5c5f8289f24f4befbe76fde9c349dc7980989d (diff)
downloadbcm5719-llvm-cc64cc1773f2cf08e1c321a59659a9ccd2206338.tar.gz
bcm5719-llvm-cc64cc1773f2cf08e1c321a59659a9ccd2206338.zip
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.
llvm-svn: 191457
Diffstat (limited to 'lldb/test/functionalities/thread')
-rw-r--r--lldb/test/functionalities/thread/jump/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/test/functionalities/thread/jump/main.cpp b/lldb/test/functionalities/thread/jump/main.cpp
index b60fd4570bb..3497155a98f 100644
--- a/lldb/test/functionalities/thread/jump/main.cpp
+++ b/lldb/test/functionalities/thread/jump/main.cpp
@@ -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;
}
OpenPOWER on IntegriCloud