diff options
Diffstat (limited to 'lldb/test/lang/c/stepping/main.c')
| -rw-r--r-- | lldb/test/lang/c/stepping/main.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lldb/test/lang/c/stepping/main.c b/lldb/test/lang/c/stepping/main.c index 624dcddbcfa..599139cfa0b 100644 --- a/lldb/test/lang/c/stepping/main.c +++ b/lldb/test/lang/c/stepping/main.c @@ -14,7 +14,7 @@ int c(int); int a(int val) { - int return_value = val; + int return_value = val; // basic break at the start of b if (val <= 1) { @@ -39,6 +39,11 @@ int c(int val) return val + 3; // Find the line number of function "c" here. } +int complex (int first, int second, int third) +{ + return first + second + third; // Step in targetting complex should stop here +} + int main (int argc, char const *argv[]) { int A1 = a(1); // frame select 2, thread step-out while stopped at "c(1)" @@ -50,5 +55,13 @@ int main (int argc, char const *argv[]) int A3 = a(3); // frame select 1, thread step-out while stopped at "c(3)" printf("a(3) returns %d\n", A3); + int A4 = complex (a(1), b(2), c(3)); // Stop here to try step in targetting b. + + int A5 = complex (a(2), b(3), c(4)); // Stop here to try step in targetting complex. + + int A6 = complex (a(4), b(5), c(6)); // Stop here to step targetting b and hitting breakpoint. + + int A7 = complex (a(5), b(6), c(7)); // Stop here to make sure bogus target steps over. + return 0; } |

