From a4d0573175af8eb1562ecd048419a33099fb56c8 Mon Sep 17 00:00:00 2001 From: SinaKarvandi Date: Wed, 15 Apr 2020 14:11:54 -0700 Subject: [PATCH] add git attributes --- .gitattributes | 22 ++++++++++++++++++++++ hyperdbg/hprdbghv/Debugger.c | 7 ++++++- hyperdbg/hprdbghv/GlobalVariables.h | 6 ++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..8079ae23 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp +*.sln merge=union +*.csproj merge=union +*.vbproj merge=union +*.fsproj merge=union +*.dbproj merge=union + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain \ No newline at end of file diff --git a/hyperdbg/hprdbghv/Debugger.c b/hyperdbg/hprdbghv/Debugger.c index 9c1ed1b5..20fefa62 100644 --- a/hyperdbg/hprdbghv/Debugger.c +++ b/hyperdbg/hprdbghv/Debugger.c @@ -36,6 +36,12 @@ DebuggerInitialize() InitializeListHead(&g_GuestState[i].Events.HiddenHooksExecDetourEvents); InitializeListHead(&g_GuestState[i].Events.SyscallHooksEferEvents); } + + // + // Enabled Debugger Events + // + g_EnableDebuggerEvents = TRUE; + // //--------------------------------------------------------------------------- // Temporary test everything here @@ -105,7 +111,6 @@ DebuggerInitialize() // DebuggerAddActionToEvent(Event1, BREAK_TO_DEBUGGER, FALSE, NULL, NULL); - DbgBreakPoint(); // // Call to register // diff --git a/hyperdbg/hprdbghv/GlobalVariables.h b/hyperdbg/hprdbghv/GlobalVariables.h index e57e45b0..1e32839b 100644 --- a/hyperdbg/hprdbghv/GlobalVariables.h +++ b/hyperdbg/hprdbghv/GlobalVariables.h @@ -52,3 +52,9 @@ BOOLEAN g_ExecuteOnlySupport; * */ BOOLEAN g_AllowIOCTLFromUsermode; + +/** + * @brief Determines whether the debugger events should be active or not + * + */ +BOOLEAN g_EnableDebuggerEvents;