1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 13:04:23 +00:00

Merge pull request #755 from Gelmir/stacktrace_gh_md

Wrap stacktrace output in GitHub MarkDown code tags.
This commit is contained in:
sledgehammer999 2013-07-10 12:07:59 -07:00
commit f261c18d73

View File

@ -151,6 +151,7 @@ const QString straceWin::getBacktrace() {
QString log; QString log;
QTextStream logStream(&log); QTextStream logStream(&log);
logStream << "```\n";
HANDLE hProcess = GetCurrentProcess(); HANDLE hProcess = GetCurrentProcess();
HANDLE hThread = GetCurrentThread(); HANDLE hThread = GetCurrentThread();
@ -213,6 +214,7 @@ const QString straceWin::getBacktrace() {
logStream << "\n\nList of linked Modules:\n"; logStream << "\n\nList of linked Modules:\n";
EnumModulesContext modulesContext(hProcess, logStream); EnumModulesContext modulesContext(hProcess, logStream);
SymEnumerateModules64(hProcess, EnumModulesCB, (PVOID)&modulesContext); SymEnumerateModules64(hProcess, EnumModulesCB, (PVOID)&modulesContext);
logStream << "```";
return log; return log;
} }
#if defined(_M_IX86) && defined(Q_CC_MSVC) #if defined(_M_IX86) && defined(Q_CC_MSVC)