aboutsummaryrefslogtreecommitdiff
path: root/src/common/Debugging
AgeCommit message (Collapse)Author
8 daysCore: Fix clang build on windowsShauren
2025-07-13Core/CrashHandler: Fix nopch buildShauren
2025-07-06Core/CrashHandler: Remove MAX_PATH limitShauren
2025-06-11Core/Common: Update PCH content to include most commonly used headersShauren
2024-10-01Core/Utilities: Extend make_unique_ptr_with_deleter functionality to allow ↵Shauren
it to create deleters with compile time constant functions (reduces its size to just sizeof(void*))
2024-09-23Core/CrashHandler: Output inlined stack framesShauren
2024-09-23Core/CrashHandler: Make WheatyExceptionReport fields not static to ensure ↵Shauren
consistent destruction order
2024-09-15Core/CrashHandler: Compile WheatyExceptionReport only once and moved its ↵Shauren
global variable initializer to all projects using it
2024-06-02Core/Misc: Fixed windows _UNICODE incompatibilitiesShauren
2024-03-01Core/Misc: Replace sprintf with safer alternatives (Trinity::StringFormat or ↵Shauren
snprintf)
2024-02-17Core/CrashHandler: Support dumping variables stored in cpu registers (not ↵Shauren
accurate for all variables)
2024-02-17Core/CrashHandler: Support ARM64Shauren
2023-12-01Core/Misc: Added windows version checks during startup to avoid confusion ↵Shauren
about crashes when running on unsupported OS
2023-11-19Core/CrashHandler: Add a timeout to retrieving windows version from WMIShauren
2023-08-24Core/Misc: Modernize comparison operatorsShauren
2023-07-16Core/Common: Use the [[unlikely]] keyword in all assert, warning and error ↵Ovahlord
macros to allow further compiler optimization (#29124)
2023-01-08Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard ↵Shauren
compatible api)
2022-09-05Core/Debugging: Improve SymInitialize fail message (#28206)ihm-tswow
* clarify that this is not the crash error, but an error with the crash report itself * improve formatting and message boundaries * warn the reader that this means the call stack symbols may be inaccurate (cherry picked from commit 6e37438e5dadd30dc2ce36e468045e0be4d26c83)
2022-06-10Core/CrashHandler: Support retrieving windows version names for all future ↵Shauren
versions (cherry picked from commit ca9b82fb856c8314c3e84b15bc16ffb3fe8239ba)
2022-03-11Common/Misc: Replace old macros with modern C++ attributes (#26613)Giacomo Pozzoni
(cherry picked from commit 5ae2a0f47d323fadcfebf44c7b6ec11a3f91c75a)
2022-03-05Core: whitespace cleanup, reduce double blank line to single (#25795)Kargatum
* Core/Misc: fix double empty line * worldserver.conf (cherry picked from commit a32b6b8ac4c81128a56b282f20837fb085bdd9e7)
2022-02-16Build: Partial support for clang-clShauren
2022-02-13Core/Misc: Cleanup unused includesShauren
2022-02-11Core/Misc: Explicitly include required headers instead of relying on them to ↵Shauren
be included by other headers
2022-01-26Core/Misc: Fix Windows 32 bits buildjackpoz
Close #25789 (cherry picked from commit 1cafd4ef74350cb3656917e8e033a5e21dcce193)
2022-01-26Core/CrashHandler: Skip logging stack trace of the thread writing the crash ↵Shauren
log, it was launched by windows with same context as crashing thread (cherry picked from commit dd34651f4d42ca598b2f1b2ed32e27b4742f4be7)
2022-01-26Core/CrashHandler: Remove logging function variation depending on crash ↵Shauren
reason and print directly to file, not to temporary buffer (cherry picked from commit c5e1b49e8c02386a0e9edf682692dc6d46cc862f)
2022-01-26Core/CrashHandler: NULL -> nullptrShauren
(cherry picked from commit 68fdfcaa507d06ce8e823e7848f4c58ef1e62732)
2022-01-26Core/CrashHandler: #ifdef cleanup to make VS not choke when parsing, fixed ↵Shauren
file being all red in editor (cherry picked from commit 39c5e03b749d44df346b8f37aed3eb898526365a)
2022-01-26Core/CrashHandler: Attempt to extract C++ exception object in uncaught ↵Shauren
exception hander (cherry picked from commit 83ed35fe62c16f5697f253a9a44bba7dcb83e80d)
2022-01-26Core/Misc: Fix compile errors found with msvc /permissive-Shauren
(cherry picked from commit b3db50a3b41b2db209327387f59afa1c40532773)
2022-01-19Core/Common: Add macro ASSERT_WITH_SIDE_EFFECTS to be used when asserting ↵jackpoz
conditions that have side effects (cherry picked from commit 49da3533cd4a0fcd8b2ac7ae0bf4b105f40f8c77)
2021-12-22Core/Common: Allow to show a message when abortingjackpoz
Add a new ABORT_MSG macro that allows to show a formatted message before stopping the executable (cherry picked from commit 0ddee8a4a03fb5c7ee8d18144ca21cd2baad6f01)
2021-12-02Core/CrashHandler: Remove sensitive data from crashlogsjackpoz
(cherry picked from commit 25bcb1a0b2d9326519d9226dfe968caf26bb4e2d) (cherry picked from commit 37478c5ac1efb8e4f19ffc94f444e160600c7b27)
2021-11-16Core/Misc: Fix vsnprintf usage in ASSERT()jackpoz
Fix vsnprintf to follow standard definition and not some old VC++ behavior, not requiring to include the '\0' character in the count parameter (cherry picked from commit eee1f2cadf8174caca4849c22ba1fb8f12fc9e08)
2021-11-16Core/Misc: Log more information in asserts (#22783)Giacomo Pozzoni
* Core/Misc: Log more information in asserts Add a new function GetDebugInfos() to types that could trigger an ASSERT() to easily include more useful information in crashlogs. This is an initial commit that requires many more commits to implement the new GetDebugInfos() function in all required types. If the type doesn't have the function, the global default one is picked which doesn't log anything. * Core/Misc: Fix dynamic build Add missing attribute for dynamic build * Core/Misc: Fix gcc/clang build * Core/Misc: Rename GetDebugInfos() to GetDebugInfo() * Core/Misc: Fix FormatAssertionMessage() adding an extra '\0' * Core/Misc: Add GetDebugInfo support to Unit * Core/Misc: Add GetDebugInfo support to Creature * Core/Misc: Add more info to GetDebugInfo for Creature * Core/Misc: Add GetDebugInfo support to GameObject * Core/Misc: Add GetDebugInfo support to Player * Core/Misc: Add more GetDebugInfo info * Core/Misc: Add GetDebugInfo support to Item * Core/Misc: Add GetDebugInfo support to Bag * Core/Misc: Add GetDebugInfo support to Transport * Core/Misc: Add GetDebugInfo support to TempSummon, Minion, Guardian, Pet * Core/Misc: Add GetDebugInfo support to Map, InstanceMap * Core/Misc: Add GetDebugInfo support to Spell * Core/Misc: Fix build warning * Core/Misc: Add GetDebugInfo support to Aura * Core/Misc: Add GetDebugInfo support to UnitAI (cherry picked from commit 9a924fb9d557434c5a2e4020c80db6e6bfe466ad)
2021-11-15Fix invalid arguments to string format in Trinity::FatalWarpten
Isn't whatever is used nowadays to make this stuff safe supposed to prevent this sort of stuff? (cherry picked from commit 9bf69b3849a9d78f3e8d174ed6367a259aaf876f)
2021-11-12Core/Misc: Add a missing include of Windows.h to Errors.cppTreeston
(that last one wasn't me!) (cherry picked from commit 1dc675f0a17d9c7d1b6e9a07d5c25cdd79bb8788)
2021-10-31Core/Misc: FIx a GCC warningShauren
2021-10-23Core/CrashHandler: Include assertion messages in crash reportsShauren
(cherry picked from commit 62db1fb683c13b8dde0cc359564e090e0594658f)
2021-08-08Core/Misc: Add PERFORMANCE_PROFILING CMake optionjackpoz
Add a new CMake option called PERFORMANCE_PROFILING that should be used only when profiling the performance. This option is unsupported, do not report any issue happening when enabling this option. (cherry picked from commit db5c9867e2ffde3657f53bc155b474c5d46884dd)
2021-04-16Core/Crash reporting: Add support to char* arraysjackpoz
Add support to char* array showing the string value instead of the pointer address (cherry picked from commit 4c0c4ab271ddc2d200cd9ccda98e16553dcaf391)
2021-02-25Core/Crash reporting: Fix buffer overflowjackpoz
(cherry picked from commit c7043b25f659eddd75fecd916235e524223c7f05)
2020-09-04Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup ↵Shauren
port
2020-08-14Core/Misc: Replace NULL with nullptrShauren
2020-04-24Core/Crash: Refactor and fixesjackpoz
Code cleanup. Fix buffer overflow crash. Fix type being truncated to 199 characters. (cherry picked from commit 9226e212053ef8ec10eeb9509f2ce6ec002d8e3b)
2020-01-02New YearAokromes
2019-01-01Update copyright note for 2019vincent-michael
auto happy = new year(2019);
2018-03-10Core/CrashHandler: Fixed generating crash logs from CRT debug assertionsShauren
2018-01-01Update copyright note for 2018vincent-michael
auto happy = new year(2018);