Displaying 4 results from an estimated 4 matches for "numcus".
2016 Nov 17
3
DWARF Generator
...(DW_AT_name, DW_FORM_strp, "argc");
//ArgcDie.addAttribute(DW_AT_type, DW_FORM_ref_addr, IntDie); // Crashes here...
DG.generate();
auto Obj = object::ObjectFile::createObjectFile(Path);
if (Obj) {
DWARFContextInMemory DwarfContext(*Obj.get().getBinary());
uint32_t NumCUs = DwarfContext.getNumCompileUnits();
for (uint32_t i=0; i<NumCUs; ++i) {
DWARFCompileUnit *U = DwarfContext.getCompileUnitAtIndex(i);
if (U)
U->getUnitDIE(false)->dump(llvm::outs(), U, -1u);
}
}
But things fall down if I try to uncomment the DW_FORM_re...
2016 Nov 18
4
DWARF Generator
...ot;);
> //ArgcDie.addAttribute(DW_AT_type, DW_FORM_ref_addr, IntDie); // Crashes here...
>
> DG.generate();
>
> auto Obj = object::ObjectFile::createObjectFile(Path);
> if (Obj) {
> DWARFContextInMemory DwarfContext(*Obj.get().getBinary());
> uint32_t NumCUs = DwarfContext.getNumCompileUnits();
> for (uint32_t i=0; i<NumCUs; ++i) {
> DWARFCompileUnit *U = DwarfContext.getCompileUnitAtIndex(i);
> if (U)
> U->getUnitDIE(false)->dump(llvm::outs(), U, -1u);
> }
> }
>
>
> But things f...
2016 Nov 18
2
DWARF Generator
..._addr, IntDie); //
>> Crashes here...
>>>
>>> DG.generate();
>>>
>>> auto Obj = object::ObjectFile::createObjectFile(Path);
>>> if (Obj) {
>>> DWARFContextInMemory DwarfContext(*Obj.get().getBinary());
>>> uint32_t NumCUs = DwarfContext.getNumCompileUnits();
>>> for (uint32_t i=0; i<NumCUs; ++i) {
>>> DWARFCompileUnit *U = DwarfContext.getCompileUnitAtIndex(i);
>>> if (U)
>>> U->getUnitDIE(false)->dump(llvm::outs(), U, -1u);
>>> }
>...
2016 Nov 18
2
DWARF Generator
...es here...
> >>>
> >>> DG.generate();
> >>>
> >>> auto Obj = object::ObjectFile::createObjectFile(Path);
> >>> if (Obj) {
> >>> DWARFContextInMemory DwarfContext(*Obj.get().getBinary());
> >>> uint32_t NumCUs = DwarfContext.getNumCompileUnits();
> >>> for (uint32_t i=0; i<NumCUs; ++i) {
> >>> DWARFCompileUnit *U = DwarfContext.getCompileUnitAtIndex(i);
> >>> if (U)
> >>> U->getUnitDIE(false)->dump(llvm::outs(), U, -1u);
>...