breakpoint_inlined_function.rs 730 B

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