How to check if program was compiled with debug symbols? [duplicate]
This question already has an answer here: How can I tell if a library was compiled with -g? 7 answers I'd like to trace some code in GIMP and therefore need GIMP with debug symbols enabled. I don't remember whether I have enabled them during compilation. How to check that without recompiling the program? You can use file and objdump on Linux. In particular, you can look at whether file says "stripped" or "not stripped", and whether objdump --syms outputs anything useful (for me, it says "no symbols" for a regular build). When running the objdump --syms command, I see much more than " no