Wifi Debugging March 23, 2009 09:22PM | Registered: 15 years ago Posts: 9 |
DEBUG_Init(GDBSTUB_DEVICE_WIFI, 8000); // Port 8000 (use whatever you want) _break();
Re: Wifi Debugging March 23, 2009 10:48PM | Registered: 15 years ago Posts: 68 |
Re: Wifi Debugging March 24, 2009 01:00PM | Registered: 16 years ago Posts: 265 |
Re: Wifi Debugging March 24, 2009 01:46PM | Registered: 15 years ago Posts: 9 |
Re: Wifi Debugging March 24, 2009 07:00PM | Registered: 16 years ago Posts: 152 |
Re: Wifi Debugging April 01, 2009 12:08AM | Registered: 15 years ago Posts: 4 |
Quote
> "make"
linking ... template.elf
template.o: In function `main':
e:/template/source/template.c:48: undefined reference to `DEBUG_Init'
collect2: ld returned 1 exit status
make[1]: *** [/e/template/template.elf] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:01
Re: Wifi Debugging April 01, 2009 12:47AM | Registered: 15 years ago Posts: 47 |
Re: Wifi Debugging April 01, 2009 02:13AM | Registered: 15 years ago Posts: 4 |
Quote
MrPeanut
Hey TiRaNog,
Undefined reference to DEBUG_Init means that the linker cannot find the code to link DEBUG_Init to your program. Try adding -ldb to the extra libraries portion of your makefile right before -logc.
As far as debugging your program:
Open gdb by running "powerpc-gekko-gdb yourprog.elf." When your program is running on the wii make your first gdb command "target remote your wii's ip:8000"
Your program will now break where you wrote _BREAK(); at in your code. From there use regular gdb commands to debug your code. As far as printf goes, printf writes to stdout and that should automatically show up on the gdb console but I don't see any of my printf statements showing up. I'll have to research that later...
Re: Wifi Debugging April 01, 2009 10:54AM | Registered: 15 years ago Posts: 9 |
Re: Wifi Debugging April 01, 2009 04:25PM | Registered: 15 years ago Posts: 4 |
Re: Wifi Debugging April 02, 2009 02:20PM | Registered: 15 years ago Posts: 9 |
Re: Wifi Debugging October 04, 2009 10:09PM | Registered: 15 years ago Posts: 2 |
Re: Wifi Debugging October 12, 2009 07:02PM | Registered: 15 years ago Posts: 703 |
Re: Wifi Debugging November 02, 2009 05:42PM | Registered: 15 years ago Posts: 5 |