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.

Unable to find dynamic linker breakpoint function

I am attempting to run gdb, which came with the SDK,  remotely to see what a program running on the C6a816x EVM ARM is doing and I get this:

(gdb) target remote 192.168.1.10:4567
Remote debugging using 192.168.1.10:4567
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0x00000000 in ?? ()
(gdb) b main
Breakpoint 4 at 0x9d08: file track.c, line 7.
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()

A couple of questions:  is the warning about Unable to find dynamic linker breakpoint function normal?  I compiled the code using the -g option.  Second, whenever I run from a breakpoint I get a segmentation fault and can do nothing further.  As far as I can tell the fault is coming from gdb, not the program itself as the program runs fine on its own.

 

Lee Holeva

 

  • Hello,Lee Holeva

    I also meet this problem. Can you tell me your GDB's version?

     

     

    yours,Super Ma

  • Make sure that you're using the correct gdb, the one that came with your SDK:

    arm-none-linux-gnueabi-gdb runDSP

    GNU gdb (Sourcery G++ Lite 2009q1-203) 6.8.50.20081022-cvs

    Copyright (C) 2008 Free Software Foundation, Inc.

    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

    This is free software: you are free to change and redistribute it.

    There is NO WARRANTY, to the extent permitted by law. Type "show copying"

    and "show warranty" for details.

    This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi".

    For bug reporting instructions, please see:

    <https://support.codesourcery.com/GNUToolchain/>...

    (gdb) target remote 192.168.1.10:4567

    Remote debugging using 192.168.1.10:4567

    warning: Unable to find dynamic linker breakpoint function.

    GDB will be unable to debug shared library initializers

    and track explicitly loaded dynamic code.

    0x400207b0 in ?? ()

    (gdb) b main

    Breakpoint 1 at 0x8bc0: file runDSP.c, line 31.

    (gdb) cont

    Continuing.

    warning: .dynamic section for "/lib/libpthread.so.0" is not at the expected address (wrong library or version mismatch?)

    warning: .dynamic section for "/usr/lib/libstdc++.so.6" is not at the expected address (wrong library or version mismatch?)

    warning: .dynamic section for "/lib/libgcc_s.so.1" is not at the expected address (wrong library or version mismatch?)

    warning: .dynamic section for "/lib/libc.so.6" is not at the expected address (wrong library or version mismatch?)

    Error while mapping shared library sections:

    lib/ld-linux.so.3: No such file or directory.

    warning: .dynamic section for "/lib/libm.so.6" is not at the expected address (wrong library or version mismatch?)

    Breakpoint 1, main (argc=2, argv=0xbef94de4) at runDSP.c:31

    31 UInt32 resetVector = 0;

    Other than the warnings it runs fine.

    Lee Holeva

     

  • Hello,Lee Holeva

     

    I already face this issue now, can you please tel how did you solve it ?

     

    Thank you,

    Hossam

  • I had a very similar problem and from googling around I changed the gbdinit file found in /etc/gdb and added the line:

     

    set solib-absolute-prefix /path/to/nfs/folder

     

    then in code composer i told it where to find the gdb command file.

    Hope this helps!