38b19a9247
* stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use _Unwind_Backtrace(). (_Jv_StackTrace::GetCallerInfo): Enable even for targets using SJLJ EH. (_Jv_StackTrace::GetClassContext): Unconditionally use _Unwind_Backtrace(). (_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise. * sysdep/i386/backtrace.h (HAVE_FALLBACK_BACKTRACE): Do not define. (_Unwind_GetIPInfo): Define macro if SJLJ EH is in use. (_Unwind_GetRegionStart): Likewise. (_Unwind_Backtrace): Likewise. (fallback_backtrace): Accept additional unwind trace function argument. Call it during unwinding. Stop when any of _Jv_RunMain(), _Jv_ThreadStart() or main() is seen during unwinding. * sysdep/generic/backtrace.h (fallback_backtrace): Accept an additional unwind trace function argument. From-SVN: r115449
24 lines
650 B
C
24 lines
650 B
C
// backtrace.h - Fallback backtrace implementation. default implementation.
|
|
|
|
/* Copyright (C) 2005, 2006 Free Software Foundation
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
#ifndef __SYSDEP_BACKTRACE_H__
|
|
#define __SYSDEP_BACKTRACE_H__
|
|
|
|
#include <java-stack.h>
|
|
|
|
/* Unwind through the call stack calling TRACE_FN with STATE for every stack
|
|
frame. Returns the reason why the unwinding was stopped. */
|
|
_Unwind_Reason_Code
|
|
fallback_backtrace (_Unwind_Trace_Fn, _Jv_UnwindState *)
|
|
{
|
|
return _URC_NO_REASON;
|
|
}
|
|
#endif
|