aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/api/multithreaded/deep_stack.cpp
blob: da89228766e425bcbf274aca5cd4a804a634a68c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This is a test program that makes a deep stack
// so we can test unwinding from multiple threads.

void call_me(int input) {
  if (input > 1000) {
    input += 1; // Set a breakpoint here
    if (input > 1001)
      input += 1;
    return;
  } else
    call_me(++input);
}

int main() {
  call_me(0);
  return 0;
}