title: How can I know what type of debug info is in an ELF object file?
body: <p>I have an ELF object file. I want to know which type of debugging info it contains.
  It was compiled with the Diab compiler (C source) for the PPC architecture. I'm pretty sure it was built with debugging symbols. </p>
  
  <p>I have tried extracting the debugging info with <code>dwarfdump</code> but I doesn't work so I guess the debugging information is not of type DWARF.</p>
  
  <pre><code>$ dwarfdump file.elf
  No DWARF information present in file.elf
  </code></pre>
  
  <p>Using objdump to show debugging information comes up empty. </p>
  
  <pre><code>$ objdump -g file.elf 
  file.elf:     file format elf32-powerpc
  </code></pre>
  
  <p>Can it be that this ELF file does not contain debugging info even though the ELF file has sections called <code>.debug_sfnames</code>, <code>.debug_srcinfo</code> and <code>.debug.srcinfo</code>? Or is the debugging info stored in a format that <code>objdump</code> can't handle?</p>