search for: dwarfobject

Displaying 8 results from an estimated 8 matches for "dwarfobject".

2019 Apr 24
2
[DebugInfo] DWARF C API
...DWARFUnitHeader::extract(llvm::DWARFContext&, llvm::DWARFDataExtractor const&, unsigned int*, llvm::DWARFSectionKind, llvm::DWARFUnitIndex const*, llvm::DWARFUnitIndex::Entr y const*) (DWARFUnit.cpp:254) by 0x5070BAD: llvm::DWARFUnitVector::addUnitsImpl(llvm::DWARFContext&, llvm::DWARFObject const&, llvm::DWARFSection const&, llvm::DWARFDebugAbbrev const*, llvm::DWARFSection const*, llvm::DWARF Section const*, llvm::StringRef, llvm::DWARFSection const&, llvm::DWARFSection const*, llvm::DWARFSection const&, bool, bool, bool, llvm::DWARFSectionKind)::{lambda(unsigned i...
2019 Sep 24
3
Remove obsolete debug info while garbage collecting
...is not clear how these tables could be separated between section groups. The more important thing is the fragmentation itself. Dividing debug tables into pieces would increase debug info size. It also would significantly complicate code working with debug info. F.e. include/llvm/DebugInfo/DWARF/DWARFObject.h has interface for class DWARFObject. It currently is not ready for the case when there could be multiple tables. Patch introducing support for multiple tables would be massive change affected many places in llvm codebase. Another thing is that not only the llvm code base but all other DWARF...
2019 Sep 25
2
Remove obsolete debug info while garbage collecting
...parated between section groups. >> >> The more important thing is the fragmentation itself. Dividing debug >> tables into pieces would increase debug info size. >> It also would significantly complicate code working with debug info. F.e. >> include/llvm/DebugInfo/DWARF/DWARFObject.h has interface for class >> DWARFObject. It currently is not ready for the case when there could be >> multiple tables. Patch introducing support for multiple tables would be >> massive change affected many places in llvm codebase. >> >> Another thing is that not only...
2019 Apr 24
2
[DebugInfo] DWARF C API
Hi folks, I am trying to implement the C bindings API for DebugInfo::DWARF::DWARFDie. My goal is to have a C library that reads and parses DWARF debugging format (just like how llvm-dwarfdump does, but maybe more than just 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 ```
2017 Nov 15
2
Collecting address ranges in DWARFUnit::collectAddressRanges.
?Hi ! I have a question about code used for collecting ranges. I was trying to fix PR35199. Its issue that it calls unreachable when calls DWARFObject::getFileName(). We do not implement this method in LLD and it fails. Issue appears when we start to provide .debug_str section to DWARF parser. And it is relative to following code (lines 335-339): https://github.com/llvm-mirror/llvm/blob/master/lib/DebugInfo/DWARF/DWARFUnit.cpp#L335 Object...
2020 Nov 09
1
Fragmented DWARF
...both those > figures in my original post in this thread. I mean the run-time memory usage of DebugInfoDWARF library. Currently, when Object file is loaded and DWARFContext class is created the DWARFContext references section data from object::ObjectFile: DWARFContext(std::unique_ptr<const DWARFObject> DObj,..) DWARFObjInMemory(const object::ObjectFile &Obj, ...) class DWARFObjInMemory {   const DWARFSection &getLocSection() const;   const DWARFSection &getLoclistsSection() const;   StringRef getArangesSection() const;   const DWARFSection &getFrameSection() const;   co...
2019 Sep 11
4
Remove obsolete debug info while garbage collecting
Debuginfo and linker folks, we (AccessSoftek) would like to suggest a proposal for removing obsolete debug info. If you find it useful we will be happy to work on improving it. Thank you for any opinions and suggestions. Alexey.     Currently when the linker does garbage collection a lot of abandoned debug info is left behind (see Appendix A for documentation). Besides inflated debug info size,
2020 Nov 05
3
Fragmented DWARF
Hi James, On 05.11.2020 17:59, James Henderson wrote: > (Resending with history trimmed to avoid it getting stuck in moderator > queue). > > Hi Alexey, > > Just an update - I identified the cause of the "Generated debug info > is broken" error message when I tried to build things locally: the > `outStreamer` instance is initialised with the host Triple,