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
Rushor
923a368ac7
Update copyright note for 2016
2016-01-01 12:02:33 +01:00
Shauren
7631ec444e
Core/DBLayer: Improve error message from 0a27f8bce2
...
(cherry picked from commit d31706b07e )
2015-11-14 13:54:36 +01:00
Vincent-Michael
7d5e7102cd
Core: Whitespace cleanup
2015-11-07 20:01:53 +01:00
Shauren
38c7a37530
Core/Crash reporting: Fixed windows version detection for 8.1 and newer
...
(cherry picked from commit 4c866a0af0 )
2015-10-29 18:59:24 +01:00
Shauren
7af320c419
Partially revert "Core/Build: Added missing abort() calls on error handlers"
...
This reverts commit 8ea17647e6 .
2015-09-22 18:08:49 +02:00
StormBytePP
7b245a0b6b
Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert
2015-09-21 15:11:06 +02:00
StormBytePP
0cc3d883e1
Core/Build: Renamed Revision.h to GitRevision.h to avoid compile failure when old revision.h file is present
2015-08-16 23:08:01 +02:00
StormBytePP
1f66d719f2
Core/BuildSystem: Merge collision, debugging, threading, utilities and configuration into "common" which does not depend on shared anymore and moved database out of shared library
...
These changes enables to build tools only without even having MySQL installed
2015-08-16 21:23:15 +02:00