I am trying to made multiple platform script for checking if binary has a debug symbols. I want a whole script be written in python. I am wondering to evoke commands like gdb
or objdump
. for this purpose. What are your suggestions for the efficient use of this tools?
For example objdump -g
should return if there is any debug symbols, however it doesn't. Maybe someone know any API for python for checking debug symbols.