no debugging symbols found when using gdb

前端 未结 7 1070
南方客
南方客 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:11

    The application has to be both compiled and linked with -g option. I.e. you need to put -g in both CPPFLAGS and LDFLAGS.

提交回复
热议问题