Removing SET_RETURN_ADDRESS - hopefully it'll never be needed again.
This commit is contained in:
@@ -41,10 +41,8 @@ int X64Function::RemoveBreakpointImpl(Breakpoint* breakpoint) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int X64Function::CallImpl(ThreadState* thread_state, uint64_t return_address) {
|
||||
//typedef void(*call_t)(ThreadState* thread_state, uint64_t return_address);
|
||||
//((call_t)machine_code_)(thread_state, return_address);
|
||||
typedef void(*call_t)(ThreadState* thread_state, uint8_t* membase);
|
||||
((call_t)machine_code_)(thread_state, thread_state->memory()->membase());
|
||||
int X64Function::CallImpl(ThreadState* thread_state) {
|
||||
typedef void(*call_t)(void* raw_context, uint8_t* membase);
|
||||
((call_t)machine_code_)(thread_state->raw_context(), thread_state->memory()->membase());
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user