backtrace.h 872 B

123456789101112131415161718192021222324252627282930313233343536
  1. // backtrace.h - Fallback backtrace implementation. ARM implementation.
  2. /* Copyright (C) 2005, 2006 Free Software Foundation
  3. This file is part of libgcj.
  4. This software is copyrighted work licensed under the terms of the
  5. Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
  6. details. */
  7. #ifndef __SYSDEP_BACKTRACE_H__
  8. #define __SYSDEP_BACKTRACE_H__
  9. #include <java-stack.h>
  10. extern "C"
  11. {
  12. /* Unwind through the call stack calling TRACE_FN with STATE for every stack
  13. frame. Returns the reason why the unwinding was stopped. */
  14. #ifdef __ARM_EABI_UNWINDER__
  15. #define _Unwind_FindEnclosingFunction(PC) \
  16. (PC)
  17. _Unwind_Reason_Code
  18. fallback_backtrace (_Unwind_Reason_Code (*)(struct _Unwind_Context*, void*), _Jv_UnwindState *)
  19. #else
  20. _Unwind_Reason_Code
  21. fallback_backtrace (_Unwind_Trace_Fn, _Jv_UnwindState *)
  22. #endif
  23. {
  24. return _URC_NO_REASON;
  25. }
  26. }
  27. #endif