all, is there a tool to check DWARF version of file? Something like this:
$ dwarf_tool binary_name
4
In Linux environment? If you have GCC installed, you should have readelf
executable. So you can try this
readelf --debug-dump=info binary_name | grep -A 2 'Compilation Unit @'