91 Commits

Author SHA1 Message Date
andrew rodham
7e74749c93 Core: Added a container for global debugging pointers that is visible to natvis
This new concept aims to abstract the complexities of dealing global debugging state that is tricky with the symbol resolution scoping rules in Visual Studio's natvis specification, and fragile with live-coding.
The specification causes natvis authors to often need to add explicit scoping to global variables (using {,,UnrealEditor-ModuleName.dll} or UnrealEditor-ModuleName.dll! scoping), which is fragile for different build types (Editor vs Server vs Client) and configurations (Debug, Shipping etc).

This change adds a GDebuggingState symbol to every dll with which any engine module or third-party library can register global pointers using a unique GUID. The GUID string can then be used to locate that pointer from any other module through a natvis intrinsic function using strstr, without having to inject a specific symbol name into every DLL.

This allows authors to write generic natvis expressions that will work robustly when being viewed from the context of any other module, or in code that has been patched by LiveCoding.

#rb Nicholas.Frechette, Tim.Smith

[CL 35592824 by andrew rodham in ue5-main branch]
2024-08-16 09:36:37 -04:00
henrik karlsson
16360300e5 Fixed non unity compile errors
[CL 32947049 by henrik karlsson in ue5-main branch]
2024-04-12 18:02:03 -04:00
christopher waters
15bede992d Entire engine compiling with -DisableUnity -IncludeHeaders
[CL 31778133 by christopher waters in ue5-main branch]
2024-02-23 16:51:32 -05:00
christopher waters
5a0e169c6d Getting more headers compiling solo on Win64.
#rb joe.kirchoff, henrik.karlsson

[CL 31663239 by christopher waters in ue5-main branch]
2024-02-20 18:57:35 -05:00
marc audy
a88b71c8b7 Fix/silence C4702 warnings
#rnx

[CL 29883627 by marc audy in ue5-main branch]
2023-11-22 01:04:15 -05:00
tim smith
6fcbe51e16 Removed usage of include file macros from LiveCoding source since it was causing issues with SN-DBS
#rb tim.smith

[CL 29401475 by tim smith in ue5-main branch]
2023-11-03 07:04:54 -04:00
joe kirchoff
aeca895d45 Fix compile issue with cl-clang
#rnx

[CL 28427476 by joe kirchoff in ue5-main branch]
2023-10-03 15:38:41 -04:00
Steve Robb
e8df23c174 Fixed mismatched copy constructor/assignment operator in FixedSizeString.
#rb none
#jira none
#preflight 645919bc6c35ad81e621217a

[CL 25372020 by Steve Robb in ue5-main branch]
2023-05-08 12:18:34 -04:00
tim smith
ad7274f76c Fix compilation issue with VS2019
#rb self
#rnx
#preflight 63d82e52d21dbe1d296cf453

[CL 23923504 by tim smith in ue5-main branch]
2023-01-31 01:17:32 -05:00
tim smith
ccf1af206b Added a new LiveCoding command that allows for a single command to add both types of modules and a list of reserved pages.
#rb self
#rnx
#preflight 63d80c8a1f0aa8a2895c9d22

[CL 23923296 by tim smith in ue5-main branch]
2023-01-31 01:12:06 -05:00
bryan sefcik
c998a06737 Fixes to get arm64 and arm64ec to partially compile.
#jira
#fyi josh.adams
#preflight 6392612567018b14b5af1d5f

[CL 23456665 by bryan sefcik in ue5-main branch]
2022-12-08 17:28:30 -05:00
henrik karlsson
bd5352a0c3 [UE]
* More fixes to be preprocessor conformant (/Zc:preprocessor)

#rb none
#preflight skipped

[CL 22705198 by henrik karlsson in ue5-main branch]
2022-10-21 19:52:08 -04:00
henrik karlsson
dbe0123ff5 * Fixed so preprocessor conforms to C99 and C++11 (/Zc:preprocessor)
Not proud over the LC_* files but don't dare touching the actual log macros since that is hard to get right and I don't know how to test this code

#preflight 6351d6de777a77c440123e2c
#rb none

[CL 22705170 by henrik karlsson in ue5-main branch]
2022-10-21 19:50:32 -04:00
Tim Smith
606d63e307 Updating LiveCoding to Live++ 1.6.10
#rb self
#preflight 62f128d1185da2495f7b4182

[CL 21269385 by Tim Smith in ue5-main branch]
2022-08-08 11:29:32 -04:00
Tim Smith
2b7e4bb5da Fixed a reliability issue with LiveCoding where it could crash on startup.
#rb self
#preflight 62976df5101592b80503164f

[CL 20451989 by Tim Smith in ue5-main branch]
2022-06-01 10:02:51 -04:00
joe kirchoff
cdedc71084 UnrealBuildTool: Initial support for Clang 13
Hack to workaround clang-cl bug in LC_StringUtil.cpp is finally no longer necessary with Clang 13

Outstanding Issues:
Unresloved externals in ClangEditor (FRHI*)
error: ordered comparison of function pointers ('Electra::fastdelegate::DelegateMemento::GenericFuncPtr' (aka
    'void (*)()') and 'Electra::fastdelegate::DelegateMemento::GenericFuncPtr') [-Werror,-Wordered-compare-function-
    pointers]

#rnx
#rb none
#preflight 61d33dff932a02483cb454bc

#ROBOMERGE-AUTHOR: joe.kirchoff
#ROBOMERGE-SOURCE: CL 18503088 in //UE5/Release-5.0/... via CL 18503149
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18503159 by joe kirchoff in ue5-release-engine-test branch]
2022-01-03 15:42:39 -05:00
aurel cordonnier
a6e741e007 Merge from Release-Engine-Staging @ 17915896 to Release-Engine-Test
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17918595 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-25 20:05:28 -04:00
tim smith
9404dcf239 LiveCodingConsole no longer generates extraneous error messages regarding calls to NtQuerySystemInformation.
#rb trivial
#jira UE-130622
#preflight 616590d2729ae30001d84a78

#ROBOMERGE-AUTHOR: tim.smith
#ROBOMERGE-SOURCE: CL 17784970 in //UE5/Release-5.0/... via CL 17784975
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v881-17767770)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 17784990 by tim smith in ue5-release-engine-test branch]
2021-10-12 10:50:53 -04:00
tim smith
9b29a45945 Updating the xxhash license for version included in Live++
#rb none
#rnx

#ROBOMERGE-SOURCE: CL 16967550 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16967553 by tim smith in ue5-release-engine-test branch]
2021-07-27 07:29:33 -04:00
joe kirchoff
43386ca4e5 LC_StringUtil.cpp workaround is also required for MSVC Clang 12.0.0
#ROBOMERGE-SOURCE: CL 16763061 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16763918 by joe kirchoff in ue5-release-engine-test branch]
2021-06-23 18:08:19 -04:00
tim smith
899eaa25cd Improved notifications in the editor/game for live coding.
Added message that packaging can fail if assets reference new changes.

#rb
#rnx
#jira UE-115558
#preflight 60c39c8e8d00b80001b1e85f

#ROBOMERGE-SOURCE: CL 16645001 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v833-16641396)

[CL 16645007 by tim smith in ue5-release-engine-test branch]
2021-06-11 14:48:40 -04:00
Tim Smith
5fb833c5c1 Added support for more arbitrary property changes to live coding.
1) Changed the pre/post compile notifications from module notifications to process commands.
2) Added server command to notify that we want re-instance patching (two phase)
3) Added support for two phase patching to enable re-instancing without all the limitations.
4) Added a null CDO check for old blueprint classes (approved by Phillip)

#rb ben.marsh
#rnx
#preflight 6086e3481046fb000183c2d4

[CL 16115620 by Tim Smith in ue5-main branch]
2021-04-26 12:49:25 -04:00
Marc Audy
01b7c9f4f5 Merge UE5/RES @ 15958325 to UE5/Main
This represents UE4/Main @ 15913390 and Dev-PerfTest @ 15913304

[CL 15958515 by Marc Audy in ue5-main branch]
2021-04-08 14:32:07 -04:00
Tim Smith
737ad605ed Fixing Clang warnings in LiveCoding
#rb devin.doucette
#jira UE-112494

[CL 15877566 by Tim Smith in ue5-main branch]
2021-03-31 13:00:20 -04:00
halfdan ingvarsson
e5c856c8c9 Instead of relying on non-conflict with library-provided wmemchr, just re-implement std::wstring::find on top of wcsstr for clang 11.0 on Windows only.
#jira none
#rb tim.smith
#rnx

[CL 15860653 by halfdan ingvarsson in ue5-main branch]
2021-03-30 09:03:46 -04:00