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 test the lldb Python API SBSymbolContext.
12 // When stopped on a frame, we can get the symbol context using the SBFrame API
13 // SBFrame.GetSymbolContext().
36 return val + 3; // Find the line number of function "c" here.
39 int main (int argc, char const *argv[])
41 int A1 = a(1); // a(1) -> b(1) -> c(1)
42 printf("a(1) returns %d\n", A1);
44 int B2 = b(2); // b(2) -> c(2)
45 printf("b(2) returns %d\n", B2);
47 int A3 = a(3); // a(3) -> c(3)
48 printf("a(3) returns %d\n", A3);