![]() |
|
PrintCalls and PrintCallers - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion) +--- Thread: PrintCalls and PrintCallers (/Thread-printcalls-and-printcallers) |
PrintCalls and PrintCallers - OninO - 10-22-2014 Hi guys, I've recently started poking around in the Dolphin Debug build, as well as looking at the source. Specifically I'm trying to see if I can use Dolphin to generate a Call Graph for a game. I found the functions mentioned in the subject line, but I can't find them actually being called anywhere in the source (admittedly I'm not too familiar with C++ syntax with a only a passing knowledge of C). They appear to work when logging is set to "Info", but playing around with Dolphin itself (generating symbol maps, loading etc.) showed no apparent logging of the call relationships occuring. Does anyone have any insight into these functions? Kind regards, OninO RE: PrintCalls and PrintCallers - skid - 10-22-2014 Are you running the game under the debugger? I think those functions are debugger functions. To start the dolphin debugger, add a -d switch to the command line. RE: PrintCalls and PrintCallers - OninO - 10-22-2014 (10-22-2014, 10:17 AM)skid Wrote: Are you running the game under the debugger? I think those functions are debugger functions. To start the dolphin debugger, add a -d switch to the command line. Hi Skid, yes, running in debug mode. Do you know under what circumstances the functions are meant to be called? RE: PrintCalls and PrintCallers - skid - 10-22-2014 It doesn't look like it is called by anything at this moment. You could add a call to it from the Symbol list on the left of the CodeWindow, by adding a call above line 393: Code: JumpToAddress(pSymbol->address);RE: PrintCalls and PrintCallers - OninO - 10-22-2014 (10-22-2014, 12:06 PM)skid Wrote: It doesn't look like it is called by anything at this moment. You could add a call to it from the Symbol list on the left of the CodeWindow, by adding a call above line 393: Thanks Skid, I thought they weren't called but I haven't done much dev work in Visual Studio so I wasn't sure how much to trust its "Find References" functionality. I'll add in that call. |