+2019-02-13 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ * libdruntime/core/runtime.d (defaultTraceHandler): Give
+ UnwindBacktrace handler precedence over backtrace.
+
2019-02-10 Iain Buclaw <ibuclaw@gdcproject.org>
* libdruntime/Makefile.am (DRUNTIME_DSOURCES): Remove rt/util/hash.d
}
return new LibBacktrace(FIRSTFRAME);
}
+ else static if ( __traits( compiles, new UnwindBacktrace(0) ) )
+ {
+ version (Posix)
+ {
+ static enum FIRSTFRAME = 5;
+ }
+ else version (Win64)
+ {
+ static enum FIRSTFRAME = 4;
+ }
+ else
+ {
+ static enum FIRSTFRAME = 0;
+ }
+ return new UnwindBacktrace(FIRSTFRAME);
+ }
else static if ( __traits( compiles, backtrace ) )
{
import core.demangle;
auto s = new StackTrace(FIRSTFRAME, cast(CONTEXT*)ptr);
return s;
}
- else static if ( __traits( compiles, new UnwindBacktrace(0) ) )
- {
- version (Posix)
- {
- static enum FIRSTFRAME = 5;
- }
- else version (Win64)
- {
- static enum FIRSTFRAME = 4;
- }
- else
- {
- static enum FIRSTFRAME = 0;
- }
- return new UnwindBacktrace(FIRSTFRAME);
- }
else
{
return null;