no debugging symbols found when using gdb

前端 未结 7 1082
南方客
南方客 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条回答
  •  旧时难觅i
    2020-12-12 21:30

    Replace -ggdb with -g and make sure you aren't stripping the binary with the strip command.

提交回复
热议问题