Dex
16-08-2004, 10:57
Hello WL500 Hackers,
sometime it can be very helpfully to have the possibility to debug applications on the WL500. The mipsel-linux tool chain which reside in the WL500gb_1.7.5.6_GPL source package contains the GDB debugger with the very nice "insight" front end. The only thing missing to debug applications was the "gdbserver", the part running on the WL500. I have compiled the "gdbserver" from the GDB source package 6.1 to close this gap.
How to debug applications:
1. Download the attached zip file. The zip file contains the gdbserver and an
example application (gdbdemo)
2. Copy the "gdbserver" and the "gdbdemo" example application to the Wl500
ramfs
3. Open a telnet session to the WL500, change to the ramfs and start the
gdbserver by typing:
gdbserver host:2345 gdbdemo
3. Copy the "gdbdemo" application and the source file gdbdemo.c in any
working directory on your host PC
4. Change to the working directory and type
mipsel-linux-gdb gdbdemo
5. Change to the "File / Target Selection" dialog and select the following
settings:
http://wl500g.info/attachment.php?attachmentid=97&stc=1
6. Press the Run button
http://wl500g.info/attachment.php?attachmentid=96&stc=1
sometime it can be very helpfully to have the possibility to debug applications on the WL500. The mipsel-linux tool chain which reside in the WL500gb_1.7.5.6_GPL source package contains the GDB debugger with the very nice "insight" front end. The only thing missing to debug applications was the "gdbserver", the part running on the WL500. I have compiled the "gdbserver" from the GDB source package 6.1 to close this gap.
How to debug applications:
1. Download the attached zip file. The zip file contains the gdbserver and an
example application (gdbdemo)
2. Copy the "gdbserver" and the "gdbdemo" example application to the Wl500
ramfs
3. Open a telnet session to the WL500, change to the ramfs and start the
gdbserver by typing:
gdbserver host:2345 gdbdemo
3. Copy the "gdbdemo" application and the source file gdbdemo.c in any
working directory on your host PC
4. Change to the working directory and type
mipsel-linux-gdb gdbdemo
5. Change to the "File / Target Selection" dialog and select the following
settings:
http://wl500g.info/attachment.php?attachmentid=97&stc=1
6. Press the Run button
http://wl500g.info/attachment.php?attachmentid=96&stc=1