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.

CCS 5 debug problem

Hi

 I am using Code Composer Studio V: 5.3.0.00090 for AM5338 starter kit.

I try to debug using C/C++ application I got following error

"Child exited with status 127 No program to debug.  GDBserver exiting."

I don't understand what setting gone wrong

 

Please help me understand

 

 

  • Hello,

    First, you have to help me understand your issue better. More details about what exactly you were doing would help. I assume you were debugging using GDB than with the TI debugger since you are getting a GDBserver message. The message looks like it could not find a valid program to debug so it existed. perhaps the program you specified in the launch configuration is not valid. Without more details, I am just guessing.

    Please provide a reproducible test case with detailed, step-by-step instructions.

    Thanks

    ki

  • Hi Ki,

    After struggling for 2 days y'day I create new workspace and create new project with same code and successfully debug the code but now I am facing some different problem.

    Now terminal shows following error msg

    "warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. Cannot access memory at address 0x0 warning: Could not load shared library symbols for 3 libraries, e.g. /lib/libpthread.so.0. Use the "info sharedlibrary" command to see the complete listing. Do you need "set solib-search-path" or "set sysroot"?"

    I also added set solib-absolute-prefix /home/user/targetfs to .gdbinit file still problem persist

    I am sure path to some C library are wrong, can you tell me were to search C lib folder for pThread and other lib

     

  • Try using sysroot instead.

    set sysroot /home/user/targetfs (assuming this is indeed where the card filesystem root directory resides on the host. And make sure the shared libraries are indeed in the /lib folder of /home/user/targetfs

    Thanks

    ki

  • Hi Ki,

    Thanks for reply, After long time I got time to re look in this issue

    I searched for libpthread.so.0. in below path

    1)  ti-sdk-am335x-evm-05.05.01.00/linux-devkit/arm-arago-linux-gnueabi/lib - missing

    2) ti-sdk-am335x-evm-05.05.01.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib - missing

    3) /ti-sdk-am335x-evm-05.05.01.00/targetNFS/usr/lib/ - missing

    below is the content of my .gdbinit 

    set sysroot /home/d/ti-sdk-am335x-evm-05.05.01.00/linux-devkit/arm-arago-linux-gnueabi/lib
    set sysroot /home/d/ti-sdk-am335x-evm-05.05.01.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib
    set sysroot /home/d/ti-sdk-am335x-evm-05.05.01.00/targetNFS
    set sysroot /home/d/ti-sdk-am335x-evm-05.05.01.00/targetNFS/usr/lib/
    set sysroot /home/d/targetfs

    I dont know whether I am searching at correct place or .gdbinit file is wrong

    Please revert 

  • Some more information 

    At start of debug session I see below log

    warning: Unable to find dynamic linker breakpoint function.
    GDB will be unable to debug shared library initializers
    and track explicitly loaded dynamic code.
    Cannot access memory at address 0x0
    warning: Could not load shared library symbols for 3 libraries, e.g. /lib/libpthread.so.0.
    Use the "info sharedlibrary" command to see the complete listing.
    Do you need "set solib-search-path" or "set sysroot"?

    If I continue debug for pthread_create () function, system stop and I see below log

    warning: Unable to find dynamic linker breakpoint function.
    GDB will be unable to debug shared library initializers
    and track explicitly loaded dynamic code.
    Cannot access memory at address 0x0
    warning: Could not load shared library symbols for 3 libraries, e.g. /lib/libpthread.so.0.
    Use the "info sharedlibrary" command to see the complete listing.
    Do you need "set solib-search-path" or "set sysroot"?

    Please revert 

     

  • Dattatray - the locations of the shared library vary per environment. YOU need to know where they are in your environment. And make sure they align with the image on the card you created.