summaryrefslogtreecommitdiff
path: root/src/windows/preamble_patcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/preamble_patcher.h')
-rw-r--r--src/windows/preamble_patcher.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/windows/preamble_patcher.h b/src/windows/preamble_patcher.h
index 4fdb7d0..8a90258 100644
--- a/src/windows/preamble_patcher.h
+++ b/src/windows/preamble_patcher.h
@@ -467,6 +467,8 @@ class PERFTOOLS_DLL_DECL PreamblePatcher {
static bool IsShortConditionalJump(unsigned char* target,
unsigned int instruction_size);
+ static bool IsShortJump(unsigned char *target, unsigned int instruction_size);
+
// Helper routine that determines if a target instruction is a near
// conditional jump.
//
@@ -547,6 +549,12 @@ class PERFTOOLS_DLL_DECL PreamblePatcher {
unsigned int* target_bytes,
unsigned int target_size);
+ static SideStepError PatchShortJump(unsigned char* source,
+ unsigned int instruction_size,
+ unsigned char* target,
+ unsigned int* target_bytes,
+ unsigned int target_size);
+
// Helper routine that converts an instruction that will convert various
// jump-like instructions to corresponding instructions in the target buffer.
// What this routine does is fix up the relative offsets contained in jump