From cb47a1892cabce029081f68db751235f16d3dc4d Mon Sep 17 00:00:00 2001 From: Sergey Alirzaev Date: Fri, 9 Aug 2019 21:59:54 +0300 Subject: [PATCH] Report a verbose error message in case of backtrace failing to grab the symbols --- src/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index 61dbbeee6b569..e038431483c87 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -549,7 +549,7 @@ static cata::optional debug_compute_load_offset( cmd << nm_variant << ' ' << binary << " 2>&1"; FILE *nm = popen( cmd.str().c_str(), "re" ); if( !nm ) { - out << "\tbacktrace: popen(nm) failed\n"; + out << "\tbacktrace: popen(nm) failed: " << strerror( errno ) << "\n"; return cata::nullopt; }