* @callback_value: value passed at callback registering * Returns TRUE to stop execution on break */
| 29 | * Returns TRUE to stop execution on break |
| 30 | */ |
| 31 | bool memCallback(unsigned __int64 callback_value, TTD::TTD_Replay_MemoryWatchpointResult* mem, struct TTD::TTD_Replay_IThreadView* thread_info) { |
| 32 | printf("[MEM CALLBACK] "); |
| 33 | printf("callback_value: %llx, guest_addr: %llx, size: %llx, flags: %llx\n", callback_value, mem->addr, mem->size, mem->flags); |
| 34 | TTD::Position* current = thread_info->IThreadView->GetPosition(thread_info); |
| 35 | printf("Program counter: %llx | Position: %llx:%llx\n", thread_info->IThreadView->GetProgramCounter(thread_info), current->Major, current->Minor); |
| 36 | return TRUE; |
| 37 | } |
| 38 | |
| 39 | int main() |
| 40 | { |
nothing calls this directly
no test coverage detected