3

mingw writes debug information to output executable file in DWARF format.

I need to parse this debug information. I've tried to adopt libdwarf but it seems to be able to read files in ELF format only. At the same time mingw places debug information to several PE sections.

Is there any way to pass raw data from these sections to libdwarf to read debug information?

Artem Razin
  • 1,234
  • 8
  • 22
  • 3
    libdwarf recently added support for [PE executables](https://www.prevanders.net/dwarf.html#libdwarf-20190104). I just tried dwarfdump of the latest version on a PE file, and it's working fine. – ssbssa May 30 '19 at 14:04
  • gdb under Cygwin does it somehow. – Seva Alekseyev Aug 07 '19 at 17:50

0 Answers0