You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.

#1 Re: General » Desmume + GDB debugger stub » 2007-05-30 04:25:13

I had some time to look into the issue I was having--I think the problem is Insight.  I tested a simple while (true) {...} loop, and I was almost never able to break execution without Insight losing the connection.  I then tried it with the GDB console, and was able to break and resume without problems. 

Anyways, thanks for your help, masscat.  The stub has been extremely useful for me.

#2 Re: General » Desmume + GDB debugger stub » 2007-05-23 05:01:18

Well, I'm stuck with what came with devkitpro, which is version 6.5.  I downloaded Insight 6.6, but building for a windows host didn't work.

#3 Re: General » Desmume + GDB debugger stub » 2007-05-22 02:02:39

Thanks for this! I used the Windows build and it worked very well.  I had one issue, though.  I was trying to track down a crash bug in my program, so I ran it with the debugger.  When it reached the crash, Insight lost connection with Desmume and hung.  I couldn't find where in the code the crash was occurring until I stepped through line by line. 

The crash turned out to be because of a bad function pointer.  You can easily reproduce the case with something like this:

void (*foo)(int) = NULL;
foo(2);

Board footer

Powered by FluxBB