Your wii code must be compiled with the option -g linked with the option -ldb, included before other libraries such as -logc.
Start your wii code using normal means such as the homebrew channel. Start gdb by typing:
At the gdb command prompt, type:
You can then insert other break points manually by typing for example (assuming you are in the same directory as the source file):
You can then continue running the program by typing:
Examine the value of variables by typing
The 800084ac is the memory address in hex of where the crash occurred. 809F0020 is the machine code for the offending instruction.