Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> add the -g flag

I compile with -gdwarf-4 -g3 to include macro definitions in the binary. That way you can use macros at the gdb prompt. I can't imagine life without those :)



GCC has been at the dwarf 5 format for a few years, -gdwarf-4 is a pessimization in 2022




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: