Library to read ELF file DWARF debug information

Craig McQueen picture Craig McQueen · Jul 9, 2009 · Viewed 28.7k times · Source

Any recommendations for a good cross-platform library for reading ELF file debug information in DWARF format? I'd like to read the DWARF debug info in a Python program.

Answer

Eli Bendersky picture Eli Bendersky · Jan 6, 2012

There's a new kid on the block - pyelftools - a pure Python library for parsing the ELF and DWARF formats. Give it a try.

It aims to be feature-complete and is currently in active development, so any problems should be handled quickly and enthusiastically :-)