Is gdb support broken for Wii apps?

support for the powerpc toolchain
Post Reply
DrTwox
Posts: 9
Joined: Thu Aug 21, 2008 10:41 am

Is gdb support broken for Wii apps?

Post by DrTwox » Fri Oct 08, 2010 12:22 pm

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?

shagkur
Posts: 53
Joined: Thu Sep 08, 2005 8:40 pm

Re: Is gdb support broken for Wii apps?

Post by shagkur » Sat Oct 09, 2010 8:48 am

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

DrTwox
Posts: 9
Joined: Thu Aug 21, 2008 10:41 am

Re: Is gdb support broken for Wii apps?

Post by DrTwox » Sat Oct 09, 2010 9:52 am

Cheers! Works again. Keep up the excellent work guys.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests