mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 14:33:01 +00:00
and finally add crash file output
This commit is contained in:
parent
652edb18b7
commit
3a1b66957b
1 changed files with 9 additions and 0 deletions
9
extern/backward/backward.hpp
vendored
9
extern/backward/backward.hpp
vendored
|
@ -4252,10 +4252,19 @@ public:
|
|||
st.load_here(32, reinterpret_cast<void *>(uctx), info->si_addr);
|
||||
}
|
||||
|
||||
FILE* crashDump=fopen("furnace_crash.txt","w");
|
||||
|
||||
Printer printer;
|
||||
printer.address = true;
|
||||
printer.print(st, stderr);
|
||||
|
||||
if (crashDump!=NULL) {
|
||||
Printer printer;
|
||||
printer.address = true;
|
||||
printer.print(st, crashDump);
|
||||
fclose(crashDump);
|
||||
}
|
||||
|
||||
#if (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 700) || \
|
||||
(defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L)
|
||||
psiginfo(info, nullptr);
|
||||
|
|
Loading…
Reference in a new issue