MCPcopy Create free account
hub / github.com/commial/ttd-bindings / memCallback

Function memCallback

example_api/main.cpp:31–37  ·  view source on GitHub ↗

* @callback_value: value passed at callback registering * Returns TRUE to stop execution on break */

Source from the content-addressed store, hash-verified

29* Returns TRUE to stop execution on break
30*/
31bool 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
39int main()
40{

Callers

nothing calls this directly

Calls 2

GetPositionMethod · 0.80
GetProgramCounterMethod · 0.80

Tested by

no test coverage detected