mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Hint how to get a symbolized stack trace if llvm-symbolizer is not found on crashes
Most users of LLVM tools hit the raw traces and don't know how to get LLVM to symbolize automatically for them. When we print the non-symbolized stack trace, we will add information about how to get it symbolized. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D88269
This commit is contained in:
parent
df96f62f63
commit
ded74e922b
@ -576,6 +576,9 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS, int Depth) {
|
||||
Depth = depth;
|
||||
if (printSymbolizedStackTrace(Argv0, StackTrace, Depth, OS))
|
||||
return;
|
||||
OS << "Stack dump without symbol names (ensure you have llvm-symbolizer in "
|
||||
"your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point "
|
||||
"to it):\n";
|
||||
#if HAVE_DLFCN_H && HAVE_DLADDR
|
||||
int width = 0;
|
||||
for (int i = 0; i < depth; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user