gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > OSX and the NDS

#123118 - SpacedCowboy - Sun Mar 25, 2007 7:18 am

I don't know if this will be of interest to anyone or not, but having hit something of a brick wall playing with Mighty Max's virtual-16 code, I figured it was about time to get an emulator/debugger working on OSX.

I couldn't actually find one, which is why I'm writing this up. Perhaps it's common knowledge that it "just works" on the Mac, but I didn't know that. Anyway, I detailed the list of steps I had to go through to get desmume and gdb (target remote) working on my Mac.

It's all on my NDS page - the actual steps are via a link towards the bottom.

Cheers,
Simon.

#123635 - purplemaji - Thu Mar 29, 2007 8:15 pm

Thank you! This is very helpful to me.

#123946 - masscat - Sun Apr 01, 2007 11:34 pm

There are lots of issues with the first version of my gdb stub for desmume.

You can find a better version here.

I posted about the newer version on the old desmume forums (which have now been destroyed).

There are some new desmume forums here. People would be interested in your work on the OSX porting.

#123960 - SpacedCowboy - Mon Apr 02, 2007 3:24 am

masscat wrote:
There are lots of issues with the first version of my gdb stub for desmume.

You can find a better version here.

...

There are some new desmume forums here. People would be interested in your work on the OSX porting.


Ok, well I donwloaded/compiled that version (using the '--enable-gdbstubs' configure option, yes ?) Unfortunately this one doesn't seem to "just work" :-|

The desmume window comes up, but doesn't go into the 'wait for gdb to connect' mode (and in fact, gdb cannot connect). The program launches immediately if you type 'desmume-gdb /path/to/file.nds'

I checked to see if the configure option was working by adding an fprintf() inside the #ifdef ENABLE_GDBSTUBS lines in src/gtk/main.c, and it was printed out, so I think something else must be wrong :-(

I'll have a look into it, and if I can get the latest version working, I'll post to the forums you mention :-)

Simon.

#124096 - SpacedCowboy - Tue Apr 03, 2007 2:42 am

So, replying to myself, but after a little bit of investigation, I figured out that the GDB stub is only activated in the 'cli' version, and that the ports for the arm9/arm7 have been swapped around from their previous values (the arm9 is now 20000 not 20001).

After I'd figured that out, it worked just fine - I'll update my pages and post on the forums...

Simon