breakpoint_inlined_sourceline.rs 714 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 %s:18
  7. // DEBUGGER: run-android-app
  8. // DEBUGGER: bt
  9. // CHECK: some_function
  10. // CHECK: foo
  11. // CHECK: bar
  12. // CHECK: entry
  13. // CHECK: breakpoint_inlined_sourceline.rs:
  14. #pragma version(1)
  15. #pragma rs java_package_name(%PACKAGE%)
  16. static int twenty() {
  17. return 20;
  18. }
  19. static int some_function() {
  20. return twenty();
  21. }
  22. static int foo() {
  23. return some_function();
  24. }
  25. static int bar() {
  26. return foo();
  27. }
  28. int root() {
  29. return bar();
  30. }
  31. void entry() {
  32. bar();
  33. }