Page 1 of 1

Is gdb support broken for Wii apps?

Posted: Fri Oct 08, 2010 12:22 pm
by DrTwox
I had to use the debugger for the first time in a while today, but the _break() call crashes the app!

Add to template.c in the Wii examples:

Code: Select all

#include <debug.h>

int main( int argc, char **argv ) {
   DEBUG_Init(GDBSTUB_DEVICE_USB, 1);
   _break();
...
}
Compiled and linked with -ldb
I get "Exception (Floating Point) occurred!" using devkitPPC r21 and libogc 1.8.4 on Linux. Comment out the _break() call and the example app runs as expected. Am I the only one experiencing this?

Re: Is gdb support broken for Wii apps?

Posted: Sat Oct 09, 2010 8:48 am
by shagkur
Hi,

sorry, this is a bug introduced with the latest release while fixing an FP context corruption bug. I've fixed this now in SVN. So grab latest libogc from SVN, please.

regards
shagkur

Re: Is gdb support broken for Wii apps?

Posted: Sat Oct 09, 2010 9:52 am
by DrTwox
Cheers! Works again. Keep up the excellent work guys.