[LLVMdev] Feeding DWARF debug information for an LLVM module

Marco Alesiani marco.diiga at gmail.com
Mon Apr 28 14:42:32 PDT 2014


I'm trying to insert some DWARF debugging information into a LLVM IR module
by manually parsing the DWARF debug DIEs. I'm doing it that way since I
wrote my custom front-end for my language and the DWARF debugging
information are provided me as a byte stream for the various DWARF sections.

I took a look at the documentation and DwarfDebug class (
http://llvm.org/docs/doxygen/html/classllvm_1_1DwarfDebug.html
<http://llvm.org/docs/doxygen/html/classllvm_1_1DwarfDebug.html>  ) but it
doesn't seem to be a quick way to directly "feed the DWARF sections" to the
IR directly generated from my code. 

Anyway I'd like to know if what I'm doing (i.e. manually parsing the DWARF
sections, expression trees and everything else to get the variables /
structures I'm interested in) is a useless effort or it is the only way to
insert proper debugging information into the IR code I'm describing.



--
View this message in context: http://llvm.1065342.n5.nabble.com/Feeding-DWARF-debug-information-for-an-LLVM-module-tp68167.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.



More information about the llvm-dev mailing list