This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GDB - eclipse

Guru 20755 points


Hi,

Is there any tutorial for using GDB with eclipse for TI ?

I am using ubuntu 10.04 with TI's SDK.

I dn't need to build before debugging, but I can't find the disable option in eclipse.

I use all suggested TI's environment tools. But I can't find any wiki or tutorial from TI how to remotely debug using eclipse. I would very much appreciate your help on this.

Regards,

Ran

  • Thanks Titus, I knew this page, but it only had very minor description for using eclipse which didn't help a lot. I guess CCS is more supported by TI's for debugging, but unfortunately I don't have it yet.

    Anyway, after some trying I succeeded and now I have more details guidelines which also works for anyone who needs it.

    1. install eclipse CDT on ubuntu 10.04 (which is TI's supported Ubunto OS for gdb. others may have problems)

    2. on the target run:

    target> gdbserver :12345 ./tcpclient
                       Process ./tcpclient created; pid = 596
                       Listening on port 12345

    3. create c project and add folder which links to the source files (the build is done outside of eclipse)

    4. File->Debug as ->Debug configuration, in the "Main" tab
        in search project link to binary of main, for example:
           /home/ubuntu/dvrrdk/DVRRDK_04.01.00.02/dvr_rdk/control/tcpclient
        Select the following launcher in the same window GDB SDF remote launcher


    5. select "debugger" tab
    stop at startup (already default)
    gdb debugger for example: /home/ubuntu/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/arm-arago-linux-gnueabi-gdb
    in the same tab, chose in the "debugger option" the connection tab and change to: tcp, set ip of remote target, for example 10.0.0.2, port number:12345


    6. edit ~/.gdbinit  (not sure if required but done that)

    set solib-absolute-prefix /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi
    set can-use-hw-watchpoints 0

    7. start debug (if it tried to debug locally, can be ignored and continue)

    Thanks,

    Ran

  • Hi Ran,

    Thanks for your update.

    I appreciate your suggestions and steps and surely it helps to others too.