How can you check if a Linux executable was compiled with symbolic debugging info?
+2
A:
Quickest solution I can think of: Load it with GDB:
gdb myexecutable
You should get something like "(no debugging symbols found)" if there aren't any usable symbols inside.
Update: To return control to shell (or whatever) add --batch
:
gdb myexecutable --batch
Mario
2010-08-03 16:53:03
A:
Not sure, because I'm on OSX right now, but maybe file shows if it contains symbols or not.
Nils
2010-08-04 12:08:27