feat(util): Separate debug module with proper stacktrace printing

Because we are using mingw, we can't just use window's
dbghelp library as the symbols created are in dwarf format.

Fortunately, the dwarfstack library already provides all the
facilities to easily print very descriptive stacktraces,
including function names, file names and line numbers,
when dwarf symbols are available.

This moves the incomplete exception handling portion from
signal to a separate module as well to improve scoping.
This commit is contained in:
icex2
2024-02-25 09:36:53 +01:00
parent 31fa84e0ef
commit d3c293de45
10 changed files with 395 additions and 83 deletions
Binary file not shown.