-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hook main directly, instead of hook __scrt_common_main_seh
- Loading branch information
Showing
12 changed files
with
102 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#pragma once | ||
|
||
typedef unsigned char UBYTE; | ||
typedef unsigned short USHORT; | ||
typedef unsigned long ULONG; | ||
|
||
typedef enum _UNWIND_OP_CODES { | ||
UWOP_PUSH_NONVOL = 0, /* info == register number */ | ||
UWOP_ALLOC_LARGE, /* no info, alloc size in next 2 slots */ | ||
UWOP_ALLOC_SMALL, /* info == size of allocation / 8 - 1 */ | ||
UWOP_SET_FPREG, /* no info, FP = RSP + UNWIND_INFO.FPRegOffset*16 */ | ||
UWOP_SAVE_NONVOL, /* info == register number, offset in next slot */ | ||
UWOP_SAVE_NONVOL_FAR, /* info == register number, offset in next 2 slots */ | ||
UWOP_SAVE_XMM128 = 8, /* info == XMM reg number, offset in next slot */ | ||
UWOP_SAVE_XMM128_FAR, /* info == XMM reg number, offset in next 2 slots */ | ||
UWOP_PUSH_MACHFRAME /* info == 0: no error-code, 1: error-code */ | ||
} UNWIND_CODE_OPS; | ||
|
||
typedef union _UNWIND_CODE { | ||
struct { | ||
UBYTE CodeOffset; | ||
UBYTE UnwindOp : 4; | ||
UBYTE OpInfo : 4; | ||
}; | ||
USHORT FrameOffset; | ||
} UNWIND_CODE, * PUNWIND_CODE; | ||
|
||
typedef struct _UNWIND_INFO { | ||
UBYTE Version : 3; | ||
UBYTE Flags : 5; | ||
UBYTE SizeOfProlog; | ||
UBYTE CountOfCodes; | ||
UBYTE FrameRegister : 4; | ||
UBYTE FrameOffset : 4; | ||
UNWIND_CODE UnwindCode[1]; | ||
/* UNWIND_CODE MoreUnwindCode[((CountOfCodes + 1) & ~1) - 1]; | ||
* union { | ||
* OPTIONAL ULONG ExceptionHandler; | ||
* OPTIONAL ULONG FunctionEntry; | ||
* }; | ||
* OPTIONAL ULONG ExceptionData[]; */ | ||
} UNWIND_INFO, * PUNWIND_INFO; | ||
|
||
#define GetUnwindCodeEntry(info, index) \ | ||
((info)->UnwindCode[index]) | ||
|
||
#define GetLanguageSpecificDataPtr(info) \ | ||
((PVOID)&GetUnwindCodeEntry((info),((info)->CountOfCodes + 1) & ~1)) | ||
|
||
#define GetExceptionHandler(base, info) \ | ||
((PEXCEPTION_HANDLER)((base) + *(PULONG)GetLanguageSpecificDataPtr(info))) | ||
|
||
#define GetChainedFunctionEntry(base, info) \ | ||
((PRUNTIME_FUNCTION)((base) + *(PULONG)GetLanguageSpecificDataPtr(info))) | ||
|
||
#define GetExceptionDataPtr(info) \ | ||
((PVOID)((PULONG)GetLanguageSpecificData(info) + 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
set BDSX_CORE_VERSION=1.0.2.0 | ||
set BDSX_CORE_VERSION=1.0.3.0 |