search for: llvmcreatedwarfcontext

Displaying 2 results from an estimated 2 matches for "llvmcreatedwarfcontext".

2019 Apr 24
2
[DebugInfo] DWARF C API
...st dumping debug info) I've started with creating C structure for DebugInfo::DWARF::DWARFContext which contains all DWARF DIEs in the object file. For this I used ``` DEFINE_SIMPLE_CONVERSION_FUNCTIONS(DWARFContext, LLVMDWARFContextRef) ``` then defined some C functions ``` LLVMDWARFContextRef LLVMCreateDWARFContext(LLVMBinaryRef Bin) { std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(*unwrap(Bin)); return wrap(DICtx.release()); } void LLVMPrintDWARFContext(LLVMDWARFContextRef C) { DIDumpOptions DumpOpts; DumpOpts.DumpType = DIDT_DebugInfo; // I only care about the .debug_info section...
2019 Apr 24
2
[DebugInfo] DWARF C API
...> DebugInfo::DWARF::DWARFContext which contains all DWARF DIEs in the object > file. For this I used > > ``` > > DEFINE_SIMPLE_CONVERSION_FUNCTIONS(DWARFContext, LLVMDWARFContextRef) > > ``` > > then defined some C functions > > ``` > > LLVMDWARFContextRef LLVMCreateDWARFContext(LLVMBinaryRef Bin) { > > std::unique_ptr<DWARFContext> DICtx = > DWARFContext::create(*unwrap(Bin)); > > return wrap(DICtx.release()); > > } > > > > void LLVMPrintDWARFContext(LLVMDWARFContextRef C) { > > DIDumpOptions DumpOpts; > > DumpOpt...