diff --git a/TitanEngine/TitanEngine.Debugger.Control.cpp b/TitanEngine/TitanEngine.Debugger.Control.cpp
index 92b6845..a466636 100644
--- a/TitanEngine/TitanEngine.Debugger.Control.cpp
+++ b/TitanEngine/TitanEngine.Debugger.Control.cpp
@@ -84,10 +84,7 @@ __declspec(dllexport) void TITCALL StepInto(LPVOID StepCallBack)
ULONG_PTR ueContext = NULL;
ueContext = (ULONG_PTR)GetContextData(UE_EFLAGS);
- if(!(ueContext & 0x100))
- {
- ueContext = ueContext ^ 0x100;
- }
+ ueContext |= UE_TRAP_FLAG;
SetContextData(UE_EFLAGS, ueContext);
engineStepActive = true;
engineStepCallBack = StepCallBack;
@@ -120,10 +117,7 @@ __declspec(dllexport) void TITCALL SingleStep(DWORD StepCount, LPVOID StepCallBa
ULONG_PTR ueContext = NULL;
ueContext = (ULONG_PTR)GetContextData(UE_EFLAGS);
- if(!(ueContext & 0x100))
- {
- ueContext = ueContext ^ 0x100;
- }
+ ueContext |= UE_TRAP_FLAG;
SetContextData(UE_EFLAGS, ueContext);
engineStepActive = true;
engineStepCount = (int)StepCount;
diff --git a/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp b/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp
index 1312507..f41898e 100644
--- a/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp
+++ b/TitanEngine/TitanEngine.Debugger.DebugLoop.cpp
@@ -741,7 +741,7 @@ __declspec(dllexport) void TITCALL DebugLoop()
}
else //handle hardware breakpoints
{
- hActiveThread = OpenThread(THREAD_GET_CONTEXT|THREAD_SET_CONTEXT|THREAD_QUERY_INFORMATION, false, DBGEvent.dwThreadId);
+ hActiveThread = OpenThread(THREAD_GET_CONTEXT|THREAD_SET_CONTEXT, false, DBGEvent.dwThreadId);
myDBGContext.ContextFlags = CONTEXT_DEBUG_REGISTERS;
GetThreadContext(hActiveThread, &myDBGContext);
if((ULONG_PTR)DBGEvent.u.Exception.ExceptionRecord.ExceptionAddress == myDBGContext.Dr0 || (myDBGContext.Dr6 & 0x1))
diff --git a/TitanEngine/TitanEngine.vcxproj b/TitanEngine/TitanEngine.vcxproj
index 1ab3633..c8dc273 100644
--- a/TitanEngine/TitanEngine.vcxproj
+++ b/TitanEngine/TitanEngine.vcxproj
@@ -62,10 +62,10 @@
<_ProjectFileVersion>10.0.30319.1
$(SolutionDir)\$(IntDir)x32\
$(Configuration)\x32\
- true
+ false
$(SolutionDir)\$(Configuration)\x64\
$(Configuration)\x64\
- true
+ false
$(SolutionDir)\$(IntDir)x32\
$(Configuration)\x32\
$(SolutionDir)\$(Configuration)\x64\
@@ -83,6 +83,7 @@
AllRules.ruleset
+ false
@@ -118,7 +119,8 @@
false
MachineX86
DefaultThreadingAttribute
- /ignore:4197 /LTCG %(AdditionalOptions)
+ /ignore:4197 %(AdditionalOptions)
+ UseLinkTimeCodeGeneration
@@ -131,7 +133,7 @@
true
EnableFastChecks
MultiThreadedDebug
- 1Byte
+ Default
Use
Level3
ProgramDatabase
@@ -152,13 +154,13 @@
false
MachineX64
STAThreadingAttribute
- /ignore:4197 /LTCG %(AdditionalOptions)
+ /ignore:4197 %(AdditionalOptions)
+ UseLinkTimeCodeGeneration
- MaxSpeed
- false
+ Disabled
true
WIN32;NDEBUG;_WINDOWS;_USRDLL;UNPACKERENGINE_EXPORTS;%(PreprocessorDefinitions)
MultiThreaded
@@ -169,15 +171,17 @@
ProgramDatabase
Cdecl
CompileAsCpp
- Speed
+ Neither
+
+
+ false
$(ProjectDir)scylla_wrapper_x86.lib;$(ProjectDir)distorm_x86.lib;Imagehlp.lib;psapi.lib;%(AdditionalDependencies)
$(ProjectDir)TitanEngine.def
false
-
-
- /ignore:4197 /LTCG %(AdditionalOptions)
+ UseLinkTimeCodeGeneration
+ /ignore:4197 %(AdditionalOptions)
@@ -185,8 +189,7 @@
X64
- MaxSpeed
- true
+ Disabled
WIN64;NDEBUG;_WINDOWS;_USRDLL;UNPACKERENGINE_EXPORTS;%(PreprocessorDefinitions)
MultiThreaded
Default
@@ -195,7 +198,8 @@
Level3
ProgramDatabase
true
- Speed
+ Neither
+ false
$(ProjectDir)scylla_wrapper_x64.lib;$(ProjectDir)distorm_x64.lib;Imagehlp.lib;psapi.lib;%(AdditionalDependencies)
@@ -211,7 +215,8 @@
MachineX64
- /ignore:4197 /LTCG %(AdditionalOptions)
+ /ignore:4197 %(AdditionalOptions)
+ UseLinkTimeCodeGeneration
diff --git a/TitanEngine/TitanEngine.vcxproj.filters b/TitanEngine/TitanEngine.vcxproj.filters
index f480f26..7aeae7e 100644
--- a/TitanEngine/TitanEngine.vcxproj.filters
+++ b/TitanEngine/TitanEngine.vcxproj.filters
@@ -284,6 +284,9 @@
Header Files\TitanEngine
+
+ Header Files
+