debuggingdwarf

Check DWARF version of compilation unit


all, is there a tool to check DWARF version of file? Something like this:

$ dwarf_tool binary_name
4

Solution

  • 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 @'