no debugging symbols found when using gdb

前端 未结 7 1074
南方客
南方客 2020-12-12 20:59

GNU gdb Fedora (6.8-37.el5) Kernal 2.6.18-164.el5

I am trying to debug my application. However, everytime I pass the binary to the gdb it says:

(         


        
7条回答
  •  执念已碎
    2020-12-12 21:15

    The most frequent cause of "no debugging symbols found" when -g is present is that there is some "stray" -s or -S argument somewhere on the link line.

    From man ld:

       -s
       --strip-all
           Omit all symbol information from the output file.
    
       -S
       --strip-debug
           Omit debugger symbol information (but not all symbols) from the output file.
    

提交回复
热议问题