• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 40 41 42 43 44 ... 117 Next »

PrintCalls and PrintCallers
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
PrintCalls and PrintCallers
10-22-2014, 05:24 AM
#1
OninO
Unregistered
 
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
Reply
10-22-2014, 10:17 AM
#2
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
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.
Find
Reply
10-22-2014, 10:50 AM
#3
OninO
Unregistered
 
(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?
Reply
10-22-2014, 12:06 PM
#4
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
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);
Find
Reply
10-22-2014, 02:01 PM
#5
OninO
Unregistered
 
(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:

Code:
JumpToAddress(pSymbol->address);

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.
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode