libphobos: Print stacktrace before terminating program due to uncaught exception.
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 25 Sep 2021 21:03:41 +0000 (23:03 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Thu, 30 Sep 2021 13:07:19 +0000 (15:07 +0200)
commited3ec7343b7d104a3285336fbfc1e4719719f9b6
tree6953149589798af518e0a53f1956fa26f037fd87
parent0111153234120de7f87b050df78f0d9819ca4214
libphobos: Print stacktrace before terminating program due to uncaught exception.

By default, D run-time has a top level exception handler to catch
anything that was uncaught by user code.  However when the
`rt_trapExceptions' flag is cleared, this handler would not be enabled,
and this termination would occur, aborting the program, but without any
information about the exception.

libphobos/ChangeLog:

* libdruntime/gcc/deh.d (_d_print_throwable): Declare.
(_d_throw): Print stacktrace before terminating program due to
uncaught exception.
libphobos/libdruntime/gcc/deh.d