1 //===-- main.c --------------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 // This simple program is to demonstrate the capability of the lldb command
12 // "breakpoint modify -i <count> breakpt-id" to set the number of times a
13 // breakpoint is skipped before stopping. Ignore count can also be set upon
14 // breakpoint creation by 'breakpoint set ... -i <count>'.
25 return c(val); // a(3) -> c(3) Find the call site of c(3).
37 return val + 3; // Find the line number of function "c" here.
40 int main (int argc, char const *argv[])
42 int A1 = a(1); // a(1) -> b(1) -> c(1)
43 printf("a(1) returns %d\n", A1);
45 int B2 = b(2); // b(2) -> c(2) Find the call site of b(2).
46 printf("b(2) returns %d\n", B2);
48 int A3 = a(3); // a(3) -> c(3) Find the call site of a(3).
49 printf("a(3) returns %d\n", A3);
51 int C1 = c(5); // Find the call site of c in main.
52 printf ("c(5) returns %d\n", C1);