search for: dwarfcontext

Displaying 20 results from an estimated 64 matches for "dwarfcontext".

2019 Apr 24
2
[DebugInfo] DWARF C API
...ect::resolveARM(llvm::object::RelocationRef, unsigned long, unsigned long) (RelocationResolver.cpp:250) by 0x502802B: llvm::DWARFDataExtractor::getRelocatedValue(unsigned int, unsigned int*, unsigned long*) const (DWARFDataExtractor.cpp:27) by 0x5071C2F: llvm::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...
2019 Apr 24
2
[DebugInfo] DWARF C API
...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 ``` DEFINE_SIMPLE_CONVERSION_FUNCTIONS(DWARFContext, LLVMDWARFContextRef) ``` then defined some C functions ``` LLVMDWARFContextRef LLVMCreateDWARFContext(LLVMBinaryRef Bin) { std::unique_ptr<DWARFContext> DICtx = DWARFContex...
2018 Apr 01
2
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
...i make this call to intrinsic from the c++ code ? I'm not working with the IR language, but directly in C++ with IRBuilder::CreateAlloca. My goal is that one : - Generate machine code with an instance of the class 'IRBuilder' - Emit 'ObjFile' class instance with MCJIT - Create a DwarfContext instance directly from the emitted ObjFile object (DwarfContextInMemory) (on JitEventListener::NotifyObjectEmitted) - Use this DwarfContext to step into my home made runtime debugger. Now I can perform step over/into/out in my debugger using the DwarfContext instance without problem, but I'm s...
2018 Apr 02
0
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
...from the c++ code ? > I'm not working with the IR language, but directly in C++ with > IRBuilder::CreateAlloca. > My goal is that one : > - Generate machine code with an instance of the class 'IRBuilder' > - Emit 'ObjFile' class instance with MCJIT > - Create a DwarfContext instance directly from the emitted ObjFile object > (DwarfContextInMemory) (on JitEventListener::NotifyObjectEmitted) > - Use this DwarfContext to step into my home made runtime debugger. > > Now I can perform step over/into/out in my debugger using the DwarfContext > instance withou...
2018 Mar 31
2
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
...cally bind the CreateAlloca with my named local variable inside the DIBuilder ? Is it automatic with the Twine name of CreateAlloca ? And/Or should I use DIBuilder::createAutoVariable and how ? Then, I'm wondering how to locate back my local variable in memory (register or stack) once i have a DwarfContext ready. I'm a bit lost with all this pipeline, sorry If my question seem trivial. Thanks ! Vivien -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180331/ae6d23a2/attachment.html>
2018 Apr 01
0
[Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext
...describe that so we understand what you need. --paulr From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Vivien Millet via llvm-dev Sent: Saturday, March 31, 2018 7:33 AM To: llvm-dev Subject: [llvm-dev] [Dwarf] Register a local variable in DIBuilder and locate it later with a DwarfContext Hi, First, considering I'm using an IRBuilder and a DIBuilder to build my program, how can I automatically bind the CreateAlloca with my named local variable inside the DIBuilder ? Is it automatic with the Twine name of CreateAlloca ? And/Or should I use DIBuilder::createAutoVariable and how...
2018 Nov 03
2
llvm bug 36466 fix
...unsigned int, llvm::DIDumpOptions) const /home/linux/llvm-7/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp:530:0 #21 0x0000000000445cdd llvm::DWARFCompileUnit::dump(llvm::raw_ostream&, llvm::DIDumpOptions) /home/linux/llvm-7/llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp:31:0 #22 0x00000000004482ad llvm::DWARFContext::dump(llvm::raw_ostream&, llvm::DIDumpOptions, std::array<llvm::Optional<unsigned long>, 27ul>)::'lambda0'(bool, char const*, llvm::DWARFSection, llvm::iterator_range<std::unique_ptr<llvm::DWARFCompileUnit, std::default_delete<llvm::DWARFCompileUnit> >*>)::...
2018 Nov 03
2
llvm bug 36466 fix
...> /home/linux/llvm-7/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp:530:0 >> #21 0x0000000000445cdd llvm::DWARFCompileUnit::dump(llvm::raw_ostream&, >> llvm::DIDumpOptions) >> /home/linux/llvm-7/llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp:31:0 >> #22 0x00000000004482ad llvm::DWARFContext::dump(llvm::raw_ostream&, >> llvm::DIDumpOptions, std::array<llvm::Optional<unsigned long>, >> 27ul>)::'lambda0'(bool, char const*, llvm::DWARFSection, >> llvm::iterator_range<std::unique_ptr<llvm::DWARFCompileUnit, >> std::default_delete<llv...
2018 Nov 03
2
llvm bug 36466 fix
.../DebugInfo/DWARF/DWARFDie.cpp:530:0 >>>> #21 0x0000000000445cdd llvm::DWARFCompileUnit::dump(llvm::raw_ostream&, >>>> llvm::DIDumpOptions) >>>> /home/linux/llvm-7/llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp:31:0 >>>> #22 0x00000000004482ad llvm::DWARFContext::dump(llvm::raw_ostream&, >>>> llvm::DIDumpOptions, std::array<llvm::Optional<unsigned long>, >>>> 27ul>)::'lambda0'(bool, char const*, llvm::DWARFSection, >>>> llvm::iterator_range<std::unique_ptr<llvm::DWARFCompileUnit, >>&gt...
2013 Feb 06
0
[LLVMdev] [llvm] r174463 - Initial support for DWARF CFI parsing and dumping in LLVM
...> Added: >> llvm/trunk/lib/DebugInfo/DWARFDebugFrame.cpp >> llvm/trunk/lib/DebugInfo/DWARFDebugFrame.h >> Modified: >> llvm/trunk/include/llvm/DebugInfo/DIContext.h >> llvm/trunk/include/llvm/Support/Dwarf.h >> llvm/trunk/lib/DebugInfo/DWARFContext.cpp >> llvm/trunk/lib/DebugInfo/DWARFContext.h >> llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp >> >> Modified: llvm/trunk/include/llvm/DebugInfo/DIContext.h >> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/DIContext.h?rev=17...
2020 Jan 22
4
Longstanding failing tests - clang-tidy, MachO, Polly
...#0 0x00007ff6c125dfb8 llvm::DWARFCompileUnit::dump(class llvm::raw_ostream &, struct llvm::DIDumpOptions) D:\llvm-project\llvm\lib\DebugInfo\DWARF\DWARFCompileUnit.cpp:23:0 #1 0x00007ff6c1236e18 <lambda_25ce692e137c1a998cd3557ebf29fa33>::operator() D:\llvm-project\llvm\lib\DebugInfo\DWARF\DWARFContext.cpp:367:0 #2 0x00007ff6c123968b llvm::DWARFContext::dump(class llvm::raw_ostream &, struct llvm::DIDumpOptions, class std::array<class llvm::Optional<unsigned __int64>, 28>) D:\llvm-project\llvm\lib\DebugInfo\DWARF\DWARFContext.cpp:372:0 #3 0x00007ff6c12197f8 dumpObjectFile D:\llvm-...
2012 Nov 06
2
[LLVMdev] [PATCH] basic reading reloc visitor for x86_64 ELF
...clude "llvm/ADT/StringRef.h" #include "llvm/Support/DataTypes.h" diff --git a/lib/DebugInfo/DIContext.cpp b/lib/DebugInfo/DIContext.cpp index ead57f9..691a92c 100644 --- a/lib/DebugInfo/DIContext.cpp +++ b/lib/DebugInfo/DIContext.cpp @@ -19,8 +19,9 @@ DIContext *DIContext::getDWARFContext(bool isLittleEndian, StringRef aRangeSection, StringRef lineSection, StringRef stringSection, - StringRef rangeSection) { +...
2011 Sep 15
2
[LLVMdev] llvm compilation error on TOT
...ce/llvm/include/llvm/DebugInfo/DIContext.h:52: error: 'uint64_t' has not been declared In file included from DIContext.cpp:11: /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: warning: 'virtual llvm::DILineInfo llvm::DIContext::getLineInfoForAddress(int)' was hidden DWARFContext.h:69: warning: by 'virtual llvm::DILineInfo llvm::DWARFContext::getLineInfoForAddress(uint64_t)' DIContext.cpp: In static member function 'static llvm::DIContext* llvm::DIContext::getDWARFContext(bool, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef...
2012 Nov 06
0
[LLVMdev] [PATCH] basic reading reloc visitor for x86_64 ELF
On Mon, Nov 5, 2012 at 5:17 PM, Eric Christopher <echristo at gmail.com> wrote: > For llvm-dwarfdump we need to handle relocations inside the debug info > sections in order to successfully dump the dwarf info including strings. > Nick sent out a partial patch that did this not too long ago and I've taken > it and gone in a bit of a different direction, but kept the same basic
2020 Feb 28
3
Adding accelerator tables to existing linked DWARF files
...DWARF abilities other than compressing DWARF sections. If we do add functionality to llvm-objcopy, are we ok pulling in DebugInfoDWARF and the LLVM object model? AFAICT the code for this tools has its own object file layer which doesn't match the full layer inside of LLVM (llvm::ObjectFile and DWARFContext). Also, no AsmPrinter objects are used in this codebase either. Looking at lld sources, is seems to use the DebugInfoDWARF library to some extent already. Not sure if this tool uses the standard LLVM object model or has all of its own emitters. Does lld use AsmPrinter at all? I don't see any m...
2020 Nov 09
1
Fragmented DWARF
...'m not sure if you're referring to the memory usage at link time or > the disk space required for the inputs, but I posted 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 DWARFSect...
2014 Aug 13
2
[LLVMdev] Advice for setting debug locations
...242 collectAddressRanges at /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFUnit.cpp:302 generate at /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFDebugAranges.cpp:54 getDebugAranges at /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFContext.cpp:270 getCompileUnitForAddress at /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFContext.cpp:423 Can somebody tell me what the correct way to achieve this is? [1] https://github.com/JuliaLang/julia/commit/e494cb6dff193ecb0e254981be0f1122ae294d04
2011 Sep 15
0
[LLVMdev] llvm compilation error on TOT
.../llvm/DebugInfo/DIContext.h:52: error: 'uint64_t' has not been declared > In file included from DIContext.cpp:11: > /extra/xguo/workspace/llvm/include/llvm/DebugInfo/DIContext.h:52: warning: 'virtual llvm::DILineInfo llvm::DIContext::getLineInfoForAddress(int)' was hidden > DWARFContext.h:69: warning:   by 'virtual llvm::DILineInfo llvm::DWARFContext::getLineInfoForAddress(uint64_t)' > DIContext.cpp: In static member function 'static llvm::DIContext* llvm::DIContext::getDWARFContext(bool, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::StringRef, llvm::Stri...
2020 Jan 23
2
Longstanding failing tests - clang-tidy, MachO, Polly
...ss >> llvm::raw_ostream &, struct llvm::DIDumpOptions) >> D:\llvm-project\llvm\lib\DebugInfo\DWARF\DWARFCompileUnit.cpp:23:0 >> >> #1 0x00007ff6c1236e18 >> <lambda_25ce692e137c1a998cd3557ebf29fa33>::operator() >> D:\llvm-project\llvm\lib\DebugInfo\DWARF\DWARFContext.cpp:367:0 >> >> #2 0x00007ff6c123968b llvm::DWARFContext::dump(class llvm::raw_ostream &, >> struct llvm::DIDumpOptions, class std::array<class llvm::Optional<unsigned >> __int64>, 28>) >> D:\llvm-project\llvm\lib\DebugInfo\DWARF\DWARFContext.cpp:372:0...
2014 Aug 13
2
[LLVMdev] Advice for setting debug locations
.../Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFUnit.cpp:302 >> generate at /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFDebugAranges.cpp:54 >> getDebugAranges at >> /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFContext.cpp:270 >> getCompileUnitForAddress at >> /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFContext.cpp:423 >> >> Can somebody tell me what the correct way to achieve this is? >> >> [1] https://github.com/JuliaLang/julia/commit/e494cb6dff193e...