[windows][support] Improve backtrace emitted in crash report without llvm-symbolizer
authorBen Dunbobbin <Ben.Dunbobbin@sony.com>
Mon, 20 Jun 2022 10:43:38 +0000 (11:43 +0100)
committerBen Dunbobbin <Ben.Dunbobbin@sony.com>
Mon, 20 Jun 2022 11:34:32 +0000 (12:34 +0100)
commit7cd1c01c8e855704ffa963778e51e8cd3030c6bf
tree54178775b9621774f56a28bf83a39bfd64a1152e
parent485e8b4f63efc4717b326e46b499c944e443fe6d
[windows][support] Improve backtrace emitted in crash report without llvm-symbolizer

Currently the backtrace emitted on windows when llvm-symbolizer is not
available includes addresses which cannot be easily decoded because
the addresses have the containing module's run-time base address added
into them, but we don't know what those base addresses are. This
change emits a module offset rather than an address.

There are a couple of related changes which were included as a result
of the review discussion for this patch:
- I have also removed the parameter printing as it adds noise to the
  dump and doesn't seem useful.
- I have added the exception code to the backtrace.

Differential Review: https://reviews.llvm.org/D127915
llvm/lib/Support/Windows/Signals.inc