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.

EZSDK debugging multi-threaded application issue with GDBserver

Other Parts Discussed in Thread: DM3730

Hi,

I am having a problem debugging multi-threaded applications using gdbserver.  I have read other posts in this forum, such as:

but none of these seem to be conclusive.  
We use ti-ezsdk_dm814x-evm_5_05_02_00 and DM8148 based custom hardware.  I have tried copying gdbserver and libraries from linux-devkit, CodeSourery 2009q1, or 2010, but none worked.

Has anybody found a solution/work around for this problem?

Thanks,
tamo2 

  • Hi Tamo,

    Have you read the below wiki pages?

    http://processors.wiki.ti.com/index.php/CCS_Debugging_of_Linux_Applications_with_GDB

    http://processors.wiki.ti.com/index.php/Multithreaded_Debugging_Made_Easier_by_Forcing_Core_Dumps

    Regards,
    Pavel

  • Hi Pavel

    Thanks for the reply.  I am out of the town right now but I will read through those pages when I get back.

    One quick question -- by following those pages, are you sure that GBD debugging will be possible for multi-threaded application?  I can debug single-threaded applications, but having a problem debugging multi-threaded applications.

    Thanks,
    Tamo2 

  • Tamo,

    tamo2 said:
    One quick question -- by following those pages, are you sure that GBD debugging will be possible for multi-threaded application?

    Please have a look on the second link:

    http://processors.wiki.ti.com/index.php/Multithreaded_Debugging_Made_Easier_by_Forcing_Core_Dumps

    I can also provide you the below e2e discussions, might be in help:

    http://e2e.ti.com/support/embedded/linux/f/354/t/63416.aspx

    http://e2e.ti.com/support/embedded/linux/f/354/t/133150.aspx

    http://e2e.ti.com/support/embedded/linux/f/354/p/37497/135642.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/149908.aspx

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/122185/435548.aspx

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/146092.aspx

    BR
    Pavel

  • Hi Pavel,

    Thanks for the info.

    Please have a look on the second link:
    http://processors.wiki.ti.com/index.php/Multithreaded_Debugging_Made_Easier_by_Forcing_Core_Dumps

    This looks a bit too overkill for us.  We will try this if nothing else works.

    http://e2e.ti.com/support/embedded/linux/f/354/t/63416.aspx

    This info looks promising -- I will try this and see how it goes.
    Other links didn't seem helpful for us.  Most of them are not solved yet, or the platform is different.

  • As described in http://e2e.ti.com/support/embedded/linux/f/354/t/63416.aspx, some of the library files were stripped.
    We ended up with replacing the following files from another Linux filesystem which we used for DM3730 development:

    lib/libgcc_s.so.1
    lib/ld-2.8.so
    lib/libc-2.8.so
    lib/libm-2.8.so
    lib/libpthread-2.8.so
    lib/libthread_db-1.0.so
    usr/bin/gdbserver
    usr/lib/libstdc++.so.6.0.10

    plus, gdbserver itself.

    Now debugging multi-threaded application works.
    Thanks Pavel!   
    (Sorry for the very late reply)