[PATCH] Initial support for parsing DWARF CFI in DebugInfo and dumping it in llvm-dwarfdump

Eli Bendersky eliben at google.com
Tue Feb 5 14:47:40 PST 2013


The attached patch is the first step for adding DWARF CFI parsing and
dumping support to LLVM's tools.

What it does:

* Parses the .debug_frame section, obtaining the CIE and FDE headers
* Dumping those in a readelf-compatible format for the llvm-dwarfdump tool

What it doesn't do yet:

* No support for .eh_frame, only .debug_frame
* Doesn't decode actual instructions, only entry headers

This is something that can (and should) be developed incrementally, so
once the initial patch gets accepted and committed, more features can
be added. Even in its initial form it can already allow some tests to
be written more naturally with llvm-dwarfdump. Note that I didn't
include tests in the patch - I'll add them once the general direction
is approved.

Eli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarf-parse-frames.1.patch
Type: application/octet-stream
Size: 18649 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130205/d6d4ed68/attachment.obj>


More information about the llvm-commits mailing list