Results 1 to 3 of 3

Thread: How to debug applications on the WL500

  1. #1

    How to debug applications on the WL500

    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:



    6. Press the Run button

    Attached Images Attached Images   
    Attached Files Attached Files
    Last edited by Dex; 16-08-2004 at 12:44.

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Have you checked it with new toolchain available with 1.8.1.7 sources?

  3. #3
    Hi Oleg,

    the 1.8.1.7 source package contains two mipsel-linux tool chains, the old version hndtools-mipsel-linux-3.0 and a newer version hndtools-mipsel-linux-3.2.3. Unfortunately the newer version 3.2.3 does not include anymore the gdb/insight debugger . Therefore if you want to debug applications you have to use the old tool chain. With this version (3.0) I have checked the gdbserver.

Similar Threads

  1. The value of tuning retry parameters in real-world applications
    By -=thrasher=- in forum WL-500g Custom Development
    Replies: 1
    Last Post: 12-01-2006, 15:48
  2. PPPD debug level
    By Kitsok in forum WL-500g Q&A
    Replies: 5
    Last Post: 01-03-2005, 07:19
  3. Debugging applications?
    By Dex in forum WL-500g Q&A
    Replies: 0
    Last Post: 09-07-2004, 12:52
  4. Replies: 0
    Last Post: 20-05-2004, 16:57
  5. What are you using your modded wl500 for?
    By Snigel in forum WL-500g Q&A
    Replies: 0
    Last Post: 27-11-2003, 04:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •