mardi 18 juin 2019

g++ compile without -g option but I wanna get more detailed debug info

About my project, the release version (compile without -g option), have more performance than the debug version (compile with -g option).

So I have to use release version.

But in the production environment, the release program core dump sometime.

Then I use 'gdb xxx core' to debug the core dump file, there is not enough info for me.

I don't care the size of the program or any other file.

I wanna the best performance and the most detailed debug info.

What should I do?

Aucun commentaire:

Enregistrer un commentaire