In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
411 bytes added ,  14:38, 2 July 2008
no edit summary
Line 1: Line 1:  
==Remote Debugging with GDB==
 
==Remote Debugging with GDB==
devkitPro comes with gdb, the gnu debugger, which has been configured to allow remote debugging over the USB Gecko.  You compile a stub of code into your wii program and run the debugger on your pc.  Firstly include the code which establishes the connection:
+
[[DevkitPro]] comes with gdb, the gnu debugger, which has been configured to allow remote debugging over the [[USBGecko|USB Gecko]].  You compile a stub of code into your wii program and run the debugger on your pc.  Firstly include the code which establishes the connection:
    
     #include <debug.h>
 
     #include <debug.h>
Line 12: Line 12:  
Your wii code must be compiled with the option -g linked with the option -ldb, included before other libraries such as -logc.   
 
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 the more user friendly versino of gdb by typing:
+
Start your wii code using normal means such as the homebrew channel.  There are three debugging commands available with devkitPro are:
 +
* powerpc-gekko-gdb: the basic text version of gdb driven from the command line
 +
* powerpc-gekko-gdbtui: a version of gdb which includes a text window showing the source code of your application
 +
* powerpc-gekko-insight: a custom version of [http://sourceware.org/insight Insight], a full GUI built on top of gdb, available as a separate package within devkitPro
   −
powerpc-gekko-gdbtui
+
Assuming that you have started the text based gdb, at the command prompt type:
 
  −
At the gdb command prompt, type:
      
  target remote /dev/ttyUSB0
 
  target remote /dev/ttyUSB0
41

edits

Navigation menu