Skip to content

Commit

Permalink
Include process id in crash message.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed May 22, 2023
1 parent ae5ef2f commit e0d48cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clink/app/src/utils/seh_scope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ static LONG WINAPI exception_filter(EXCEPTION_POINTERS* info)

wstr<> wpath(buffer.c_str());

const DWORD pid = GetCurrentProcessId();
fputs("\n!!! CLINK'S CRASHED!", stderr);
#ifdef _WIN64
fputs("\n!!! v" CLINK_VERSION_STR " (x64)", stderr);
#else
fputs("\n!!! v" CLINK_VERSION_STR " (x86)", stderr);
#endif
fprintf(stderr, "\n!!! process id %u (0x%x)", pid, pid);
fputs("\n!!!", stderr);
fputs("\n!!! Writing core dump", stderr);
fputs("\n!!! ", stderr);
Expand Down

0 comments on commit e0d48cf

Please sign in to comment.