开发者

Was executable compiled with debugging info?

开发者 https://www.devze.com 2023-01-09 21:21 出处:网络
How can you check if a Linux executable was compiled with 开发者_如何学Pythonsymbolic debugging info?Quickest solution I can think of: Load it with GDB:

How can you check if a Linux executable was compiled with 开发者_如何学Pythonsymbolic debugging info?


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


Not sure, because I'm on OSX right now, but maybe file shows if it contains symbols or not.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号