1 // RUN: %build_test_apk --driver driver-simple --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: run-android-app 6 // DEBUGGER: bt 7 // CHECK: entry 8 9 #pragma version(1) 10 #pragma rs java_package_name(%PACKAGE%) 11 12 static int function_with_a_segfault() { 13 int* bla = 0; 14 *bla = 5; 15 return 0; 16 } 17 18 static int some_function() { 19 return function_with_a_segfault(); 20 } 21 22 static int foo() { 23 return some_function(); 24 } 25 26 static int bar() { 27 return foo(); 28 } 29 30 int root() { 31 return bar(); 32 } 33 34 void entry() { 35 bar(); 36 } 37