Shauren
2cb5f7a81e
Core/CrashHandler: Support dumping variables stored in cpu registers (not accurate for all variables)
...
(cherry picked from commit 0743a2f7bb )
2024-02-26 12:29:16 +01:00
Shauren
120b4d7cf4
Core/CrashHandler: Support ARM64
...
(cherry picked from commit 2441ddbea6 )
2024-02-26 12:29:16 +01:00
Shauren
c703497655
Build: Partial support for clang-cl
...
(cherry picked from commit 0b846b2107 )
2024-02-26 12:16:13 +01:00
Shauren
eb50b29ab3
Core/Misc: Added windows version checks during startup to avoid confusion about crashes when running on unsupported OS
...
(cherry picked from commit 333630b7de )
2023-12-02 15:57:09 +01:00
Shauren
8b73bb509e
Core/CrashHandler: Add a timeout to retrieving windows version from WMI
...
(cherry picked from commit 36a6488405 )
2023-11-19 21:22:40 +01:00
Shauren
451314241d
Core/Misc: Modernize comparison operators
...
(cherry picked from commit f0a862e71b )
2023-08-24 11:48:45 +02:00
Shauren
aaa6e73c8c
Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
...
(cherry picked from commit d791afae1d )
2023-08-15 20:10:04 +02:00
ihm-tswow
6e37438e5d
Core/Debugging: Improve SymInitialize fail message ( #28206 )
...
* 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
2022-08-19 11:14:07 +02:00
Shauren
ca9b82fb85
Core/CrashHandler: Support retrieving windows version names for all future versions
2022-04-07 20:54:21 +02:00
Giacomo Pozzoni
5ae2a0f47d
Common/Misc: Replace old macros with modern C++ attributes ( #26613 )
2021-06-20 16:52:24 +02:00
Kargatum
a32b6b8ac4
Core: whitespace cleanup, reduce double blank line to single ( #25795 )
...
* Core/Misc: fix double empty line
* worldserver.conf
2021-01-03 11:47:07 +01:00
jackpoz
1cafd4ef74
Core/Misc: Fix Windows 32 bits build
...
Close #25789
2020-12-31 19:55:55 +01:00
Shauren
dd34651f4d
Core/CrashHandler: Skip logging stack trace of the thread writing the crash log, it was launched by windows with same context as crashing thread
2020-08-07 17:58:46 +02:00
Shauren
c5e1b49e8c
Core/CrashHandler: Remove logging function variation depending on crash reason and print directly to file, not to temporary buffer
2020-08-07 17:57:44 +02:00
Shauren
68fdfcaa50
Core/CrashHandler: NULL -> nullptr
2020-08-07 17:19:18 +02:00
Shauren
39c5e03b74
Core/CrashHandler: #ifdef cleanup to make VS not choke when parsing, fixed file being all red in editor
2020-08-07 17:19:18 +02:00
Shauren
83ed35fe62
Core/CrashHandler: Attempt to extract C++ exception object in uncaught exception hander
2020-08-07 17:19:16 +02:00
Shauren
b3db50a3b4
Core/Misc: Fix compile errors found with msvc /permissive-
2020-08-04 15:42:08 +02:00
jackpoz
49da3533cd
Core/Common: Add macro ASSERT_WITH_SIDE_EFFECTS to be used when asserting conditions that have side effects
2020-06-26 23:21:49 +02:00
jackpoz
0ddee8a4a0
Core/Common: Allow to show a message when aborting
...
Add a new ABORT_MSG macro that allows to show a formatted message before stopping the executable
2020-03-09 20:06:13 +01:00
Aokromes
ed93932537
New year
...
Say bye bye to every year changing dates
2020-01-02 06:25:50 +01:00
jackpoz
37478c5ac1
Core/CrashHandler: Update placeholder text
2019-04-28 17:53:19 +02:00
jackpoz
25bcb1a0b2
Core/CrashHandler: Remove sensible data from crashlogs
2019-04-28 17:32:53 +02:00
jackpoz
1d04a3b216
Core/Misc: Fix GCC 8 warnings
2019-03-31 17:34:28 +02:00
Shauren
cd6d57e2e7
Core/Misc: Improved error message reported by ASSERT_NOTNULL
...
(cherry picked from commit d184768bbc )
2019-02-16 17:26:57 +01:00
Treeston
fcfcb0eb6f
Happy New Year, folks. It's 2019!
2019-01-01 15:45:25 +01:00
jackpoz
eee1f2cadf
Core/Misc: Fix vsnprintf usage in ASSERT()
...
Fix vsnprintf to follow standard definition and not some old VC++ behavior, not requiring to include the '\0' character in the count parameter
2018-12-16 12:09:20 +01:00
Giacomo Pozzoni
9a924fb9d5
Core/Misc: Log more information in asserts ( #22783 )
...
* 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
2018-12-14 22:01:16 +01:00
Warpten
9bf69b3849
Fix invalid arguments to string format in Trinity::Fatal
...
Isn't whatever is used nowadays to make this stuff safe supposed to prevent this sort of stuff?
2018-10-27 22:14:37 +02:00
Treeston
1dc675f0a1
Core/Misc: constexpr a bunch of things, and a missing include of Windows.h somewhere
...
(that last one wasn't me!)
2018-09-27 14:42:42 +02:00
Shauren
62db1fb683
Core/CrashHandler: Include assertion messages in crash reports
2018-08-29 23:59:24 +02:00
Shauren
901eed7828
Core/CrashHandler: Fixed generating crash logs from CRT debug assertions
...
(cherry picked from commit abdf6479dd )
2018-03-10 15:51:57 +01:00
jackpoz
db5c9867e2
Core/Misc: Add PERFORMANCE_PROFILING CMake option
...
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.
2018-02-17 23:29:34 +01:00
jackpoz
4c0c4ab271
Core/Crash reporting: Add support to char* arrays
...
Add support to char* array showing the string value instead of the pointer address
2018-01-01 13:17:15 +01:00
tkrokli
f6b6f57a6d
Update copyright note for 2018
...
Best wishes for the new year.
2018-01-01 01:55:29 +01:00
jackpoz
c7043b25f6
Core/Crash reporting: Fix buffer overflow
2017-12-02 00:02:16 +01:00
Aokromes
59e94fd9bb
Misc: More cleanup
2017-11-25 02:39:27 +01:00
sirikfoll
e2565c2597
Core/Misc: Remove Whitespaces
2017-08-11 23:06:37 -03:00
jackpoz
9cf4dd7345
Core/Misc: Fix static analysis issues
2017-07-16 18:20:29 +02:00
ariel-
85a7d5ce9a
Core: ported headers cleanup from master branch
2017-06-19 23:20:06 -03:00
Shauren
9ec2a82cac
Core/Misc: Prefix all preprocessor defines from CompilerDefs with TRINITY_ to avoid conflicts (PLATFORM_WINDOWS is used/defined by CascLib)
...
(cherry picked from commit b8db320bf1 )
2017-05-23 18:46:44 +02:00
jackpoz
9226e21205
Core/Crash: Refactor and fixes
...
Code cleanup.
Fix buffer overflow crash.
Fix type being truncated to 199 characters.
2017-03-19 11:57:40 +01:00
tkrokli
6a51a88767
Update Copyright notice for 2017
...
Happy new year!
2017-01-02 19:52:45 +01:00
jackpoz
8538151ea6
Common/Debugging: Reduce differences between 3.3.5 and 6.x branches
...
Code functionality shouldn't have been modified.
2016-08-04 17:04:31 +02:00
jackpoz
284dd6b80d
Core/Crash reporting: Better handle max nesting level setting
...
Fix wheaty exception report counting reference symbols as 2 nesting levels, not logging child objects in some cases, i.e. spell id in SpellEvent crash.
2016-07-03 13:16:06 +02:00
Naios
1a1c0d1dc4
Core/Common: Converted the common library to a shared library.
...
* There is still the possibility to static link against common.
(cherry picked from commit 501fd9b502 )
2016-03-24 02:45:44 +01:00
MitchesD
caef32d375
Core/Misc: fix build
...
(cherry picked from commit ce5def332f )
2016-03-12 23:52:51 +01:00
Shauren
fd819b0919
Core/Debugging: Make abort() less bad on windows by forcing crash log generation
...
(cherry picked from commit dea7d429ab )
# Conflicts:
# src/server/bnetserver/Main.cpp
2016-03-12 23:52:35 +01:00
Vincent-Michael
f81488b90e
Core: Revert fail
...
(cherry picked from commit b5329d8a03 )
2016-03-12 21:46:56 +01:00
Vincent-Michael
d6f093681e
Core: Added missing overrides
...
(cherry picked from commit 5d584116fe )
2016-03-12 21:46:37 +01:00