Merge branch '2.3' into 2.4

This commit is contained in:
Markus Mäkelä 2019-09-19 10:56:52 +03:00
commit 75e7c0da92
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -157,7 +157,7 @@ void dump_stacktrace(std::function<void(const char*, const char*)> handler)
int count = backtrace(addrs, 128);
char** symbols = backtrace_symbols(addrs, count);
int rc = system("/bin/test -f /bin/nm -a -f /bin/addr2line");
int rc = system("command -v nm > /dev/null && command -v addr2line > /dev/null");
bool do_extract = WIFEXITED(rc) && WEXITSTATUS(rc) == 0;
if (symbols)