1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 00:20:25 +02:00

Improved hot compilation handling of DLLs

This commit is contained in:
Brian Fiete 2023-02-20 16:21:56 -05:00
parent 990b509111
commit c7ae0988dc
9 changed files with 84 additions and 9 deletions

View file

@ -25,7 +25,8 @@ namespace IDE.Debugger
Terminating,
Terminated,
SearchingSymSrv,
HotResolve
HotResolve,
TargetUnloaded
}
public enum IntDisplayType
@ -172,6 +173,9 @@ namespace IDE.Debugger
[CallingConvention(.Stdcall),CLink]
static extern RunState Debugger_GetRunState();
[CallingConvention(.Stdcall),CLink]
static extern bool Debugger_HasLoadedTargetBinary();
[CallingConvention(.Stdcall),CLink]
static extern char8* Debugger_GetCurrentException();
@ -534,6 +538,11 @@ namespace IDE.Debugger
return Debugger_GetRunState();
}
public bool HasLoadedTargetBinary()
{
return Debugger_HasLoadedTargetBinary();
}
public bool HasPendingDebugLoads()
{
return Debugger_HasPendingDebugLoads();
@ -561,8 +570,8 @@ namespace IDE.Debugger
public bool IsPaused(bool allowDebugEvalDone = false)
{
RunState runState = GetRunState();
return (runState == RunState.Paused) || (runState == RunState.Breakpoint) || (runState == RunState.Exception) ||
((runState == RunState.DebugEval_Done) && (allowDebugEvalDone));
return (runState == .Paused) || (runState == .Breakpoint) || (runState == .Exception) ||
((runState == .DebugEval_Done) && (allowDebugEvalDone));
}
public void GetCurrentException(String exStr)