diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-05-06 16:25:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 16:25:12 +0200 |
commit | ce8d8388d630fa936500e6843496afe113ad8bc5 (patch) | |
tree | bf48229531b01a5ca26ef2b91efbb2592e8ecf20 /src/OSSupport | |
parent | Move item placement into item handlers (#5184) (diff) | |
download | cuberite-ce8d8388d630fa936500e6843496afe113ad8bc5.tar cuberite-ce8d8388d630fa936500e6843496afe113ad8bc5.tar.gz cuberite-ce8d8388d630fa936500e6843496afe113ad8bc5.tar.bz2 cuberite-ce8d8388d630fa936500e6843496afe113ad8bc5.tar.lz cuberite-ce8d8388d630fa936500e6843496afe113ad8bc5.tar.xz cuberite-ce8d8388d630fa936500e6843496afe113ad8bc5.tar.zst cuberite-ce8d8388d630fa936500e6843496afe113ad8bc5.zip |
Diffstat (limited to 'src/OSSupport')
-rw-r--r-- | src/OSSupport/StackTrace.cpp | 2 | ||||
-rw-r--r-- | src/OSSupport/WinStackWalker.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/OSSupport/StackTrace.cpp b/src/OSSupport/StackTrace.cpp index d252e1e83..0520b4325 100644 --- a/src/OSSupport/StackTrace.cpp +++ b/src/OSSupport/StackTrace.cpp @@ -26,7 +26,7 @@ void PrintStackTrace(void) { virtual void OnOutput(LPCSTR szText) override { - puts(szText); + std::fprintf(stdout, szText); } } sw; sw.ShowCallstack(); diff --git a/src/OSSupport/WinStackWalker.cpp b/src/OSSupport/WinStackWalker.cpp index 1a95b2907..a48ce07aa 100644 --- a/src/OSSupport/WinStackWalker.cpp +++ b/src/OSSupport/WinStackWalker.cpp @@ -1154,6 +1154,9 @@ BOOL __stdcall WinStackWalker::myReadProcMem( void WinStackWalker::OnLoadModule(LPCSTR img, LPCSTR mod, DWORD64 baseAddr, DWORD size, DWORD result, LPCSTR symType, LPCSTR pdbName, ULONGLONG fileVersion) { + /* + // Uncomment to be notified of loaded DLL modules. + char buffer[STACKWALK_MAX_NAMELEN]; if (fileVersion == 0) { @@ -1168,6 +1171,7 @@ void WinStackWalker::OnLoadModule(LPCSTR img, LPCSTR mod, DWORD64 baseAddr, DWOR _snprintf_s(buffer, sizeof(buffer), "%s:%s (%p), size: %d (result: %d), SymType: '%s', PDB: '%s', fileVersion: %d.%d.%d.%d\n", img, mod, (LPVOID)baseAddr, size, result, symType, pdbName, v1, v2, v3, v4); } OnOutput(buffer); + */ } |