mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Fix indentation for long addresses and filenames
This commit is contained in:
parent
cb60519c44
commit
2dd3d1fb22
1 changed files with 3 additions and 3 deletions
|
@ -62,9 +62,9 @@ BOOL CALLBACK straceWin::EnumModulesCB(LPCSTR ModuleName, DWORD64 BaseOfDll, PVO
|
||||||
EnumModulesContext* context = (EnumModulesContext*)UserContext;
|
EnumModulesContext* context = (EnumModulesContext*)UserContext;
|
||||||
mod.SizeOfStruct = sizeof(IMAGEHLP_MODULE64);
|
mod.SizeOfStruct = sizeof(IMAGEHLP_MODULE64);
|
||||||
if(SymGetModuleInfo64(context->hProcess, BaseOfDll, &mod)) {
|
if(SymGetModuleInfo64(context->hProcess, BaseOfDll, &mod)) {
|
||||||
QString moduleBase = QString("0x%1").arg(BaseOfDll, 8, 16, QLatin1Char('0'));
|
QString moduleBase = QString("0x%1").arg(BaseOfDll, 16, 16, QLatin1Char('0'));
|
||||||
QString line = QString("%1 %2 Image: %3")
|
QString line = QString("%1 %2 Image: %3")
|
||||||
.arg(mod.ModuleName, -14)
|
.arg(mod.ModuleName, -25)
|
||||||
.arg(moduleBase, -13)
|
.arg(moduleBase, -13)
|
||||||
.arg(mod.LoadedImageName);
|
.arg(mod.LoadedImageName);
|
||||||
context->stream << line << '\n';
|
context->stream << line << '\n';
|
||||||
|
@ -202,7 +202,7 @@ const QString straceWin::getBacktrace()
|
||||||
SymSetContext(hProcess, &ihsf, NULL);
|
SymSetContext(hProcess, &ihsf, NULL);
|
||||||
SymEnumSymbols(hProcess, 0, NULL, EnumSymbolsCB, (PVOID)¶ms);
|
SymEnumSymbols(hProcess, 0, NULL, EnumSymbolsCB, (PVOID)¶ms);
|
||||||
|
|
||||||
QString insOffset = QString("0x%1").arg(ihsf.InstructionOffset, 8, 16, QLatin1Char('0'));
|
QString insOffset = QString("0x%1").arg(ihsf.InstructionOffset, 16, 16, QLatin1Char('0'));
|
||||||
QString debugLine = QString("#%1 %2 %3 %4(%5)")
|
QString debugLine = QString("#%1 %2 %3 %4(%5)")
|
||||||
.arg(i, 3, 10)
|
.arg(i, 3, 10)
|
||||||
.arg(fileName, -20)
|
.arg(fileName, -20)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue