astyle formatting
This commit is contained in:
parent
963a8b51cc
commit
22c4d45ca0
|
@ -248,21 +248,20 @@ static void print_stacktrace(FILE* f, bool demangling)
|
||||||
realname = abi::__cxa_demangle(input_buffer, output_buffer, &length, &status); // non-NULL on success
|
realname = abi::__cxa_demangle(input_buffer, output_buffer, &length, &status); // non-NULL on success
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(f, "#%d 0x",
|
fprintf(f, "#%d 0x",
|
||||||
i-offset);
|
i-offset);
|
||||||
if (padLen>0)
|
if (padLen>0)
|
||||||
fprintf(f, "%0*d",
|
fprintf(f, "%0*d",
|
||||||
padLen, 0);
|
padLen, 0);
|
||||||
if (realname) {
|
if (realname) {
|
||||||
fprintf(f, "%.*s in %s\n",
|
fprintf(f, "%.*s in %s\n",
|
||||||
(int)(secondBracketAddress-firstBracketAddress-3), firstBracketAddress+3,
|
(int)(secondBracketAddress-firstBracketAddress-3), firstBracketAddress+3,
|
||||||
realname);
|
realname);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
fprintf(f, "%.*s in %.*s\n",
|
fprintf(f, "%.*s in %.*s\n",
|
||||||
(int)(secondBracketAddress-firstBracketAddress-3), firstBracketAddress+3,
|
(int)(secondBracketAddress-firstBracketAddress-3), firstBracketAddress+3,
|
||||||
(int)(firstBracketAddress-symbol), symbol);
|
(int)(firstBracketAddress-symbol), symbol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(symbolstrings);
|
free(symbolstrings);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -255,8 +255,8 @@ int main(int argc, char **argv)
|
||||||
// enable backtrac
|
// enable backtrac
|
||||||
fout << "RDYNAMIC=-rdynamic\n";
|
fout << "RDYNAMIC=-rdynamic\n";
|
||||||
|
|
||||||
// The _GLIBCXX_DEBUG doesn't work in cygwin or other Win32 systems.
|
// The _GLIBCXX_DEBUG doesn't work in cygwin or other Win32 systems.
|
||||||
fout << "# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.\n"
|
fout << "# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.\n"
|
||||||
<< "# The _GLIBCXX_DEBUG define doesn't work in Cygwin or other Win32 systems.\n"
|
<< "# The _GLIBCXX_DEBUG define doesn't work in Cygwin or other Win32 systems.\n"
|
||||||
<< "ifndef COMSPEC\n"
|
<< "ifndef COMSPEC\n"
|
||||||
<< " ifdef ComSpec\n"
|
<< " ifdef ComSpec\n"
|
||||||
|
|
Loading…
Reference in New Issue