• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %build_test_apk --driver driver-simple-exit --out %t --testcase %s %build_test_apk_opts
2 // RUN: %Test_jit_debuginfo %s %t
3 // DEBUGGER: source android-commands.py
4 // DEBUGGER: load-android-app %t
5 // DEBUGGER: set breakpoint pending on
6 // DEBUGGER: b entry
7 // DEBUGGER: run-android-app
8 // DEBUGGER: bt
9 // CHECK: entry
10 // CHECK: breakpoint_function.rs
11 
12 #pragma version(1)
13 #pragma rs java_package_name(com.android.test.rsdebug.breakpoint_function)
14 
15 static int twenty() {
16   return 20;
17 }
18 
19 static int some_function() {
20   return twenty();
21 }
22 
23 static int foo() {
24   return some_function();
25 }
26 
27 static int bar() {
28   return foo();
29 }
30 
31 int root() {
32   return bar();
33 }
34 
35 void entry() {
36   bar();
37 }
38