[英]Was executable compiled with debugging info?
如何检查Linux可执行文件是否使用符号调试信息进行编译?
Quickest solution I can think of: Load it with GDB: 我能想到的最快的解决方案:使用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
: 更新:要将控制权返回给shell(或其他),请添加--batch
:
gdb myexecutable --batch
不确定,因为我现在正在使用OSX,但是如果它包含符号,则可能显示文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.