comment/style fixes
[official-gcc.git] / libjava / sysdep / arm / backtrace.h
blobee1bd99f89ada017f8b3a275372e6a679ede229c
1 // backtrace.h - Fallback backtrace implementation. ARM implementation.
3 /* Copyright (C) 2005, 2006 Free Software Foundation
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9 details. */
11 #ifndef __SYSDEP_BACKTRACE_H__
12 #define __SYSDEP_BACKTRACE_H__
14 #include <java-stack.h>
16 extern "C"
18 /* Unwind through the call stack calling TRACE_FN with STATE for every stack
19 frame. Returns the reason why the unwinding was stopped. */
20 #ifdef __ARM_EABI_UNWINDER__
22 #define _Unwind_FindEnclosingFunction(PC) \
23 (PC)
25 _Unwind_Reason_Code
26 fallback_backtrace (_Unwind_Reason_Code (*)(struct _Unwind_Context*, void*), _Jv_UnwindState *)
27 #else
28 _Unwind_Reason_Code
29 fallback_backtrace (_Unwind_Trace_Fn, _Jv_UnwindState *)
30 #endif
32 return _URC_NO_REASON;
35 #endif