search for: dw_form_data4

Displaying 19 results from an estimated 19 matches for "dw_form_data4".

Did you mean: dw_form_data1
2017 Apr 04
2
GDB doesn't work with IR-originated debug info
...debug_str[0x0000068f] = "void") DW_AT_encoding [DW_FORM_data1] (0x00) DW_AT_byte_size [DW_FORM_data1] (0x00) .... 0x00000cf8: DW_TAG_subprogram [16] * DW_AT_low_pc [DW_FORM_addr] (0x000000006e384c30) DW_AT_high_pc [DW_FORM_data4] (0x000002b4) DW_AT_frame_base [DW_FORM_exprloc] (<0x1> 54 ) DW_AT_name [DW_FORM_strp] ( .debug_str[0x00001616] = "FB_FPUMP at HORIZONTAL") DW_AT_type [DW_FORM_ref_addr] (*0x000000006e440296*) DW_ AT_externa...
2011 Feb 24
0
[LLVMdev] [patch] Dwarf Debug info support for COFF object files
...2-16-DbgVarScope.c > LLVM :: FrontendObjC/2009-08-17-DebugInfo.m This is because of @@ -1903,7 +1912,8 @@ addLabel(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_addr, Asm->GetTempSymbol("section_line")); else - addUInt(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0); + addSectionOffset(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_addr, + Asm->GetTempSymbol("section_line")); if (!Dir.empty()) addString(Die, dwarf::DW_AT_comp_dir, dwarf::DW_FORM_string, Dir); You probably wanted to do... @@ -1904,8 +1913,8 @@ // DW...
2011 Feb 24
2
[LLVMdev] [patch] Dwarf Debug info support for COFF object files
On Feb 24, 2011, at 11:36 AM, Devang Patel wrote: > > On Feb 12, 2011, at 2:07 AM, Nathan Jeffords wrote: > >> Hello All, >> >> I have created a set of patches that get dwarf debugging support working for the COFF object file. I also believe I have fixed what appears to be a bug in how line info sections are referred to from the DW_TAG_compile_unit DIE. I have run
2016 Dec 15
1
distinct DISubprograms hindering sharing inlined subprogram descriptions
On Thu, Dec 15, 2016 at 11:35 AM Mehdi Amini <mehdi.amini at apple.com> wrote: > > > On Dec 15, 2016, at 10:54 AM, David Blaikie via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > Branching off from a discussion of improvements to DIGlobalVariable > representations that Adrian's working on - got me thinking about related > changes that have
2010 Jun 29
2
[LLVMdev] [patch] DwarfDebug problem with line section
...with debug_line section. We believe that the following code is wrong: // DW_AT_stmt_list is a offset of line number information for this // compile unit in debug_line section. It is always zero when only one // compile unit is emitted in one object file. addUInt(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0); After compiling several files and linking them together (not only using our backend, but also x86) debug information was incorrect. I'm not 100% sure if this fix is correct, but patch attached. Artur -------------- next part -------------- An HTML attachment was scrubbed... URL: <http...
2012 Nov 19
0
[LLVMdev] Debug information under windows
...addUInt(Die, dwarf::DW_AT_low_pc, dwarf::DW_FORM_addr, 0); // DW_AT_stmt_list is a offset of line number information for this // compile unit in debug_line section. - if (Asm->MAI->doesDwarfRequireRelocationForSectionOffset()) - NewCU->addLabel(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, + if (Asm->MAI->doesDwarfRequireRelocationForSectionOffset()) { + if (Asm->MAI->getDwarfSectionOffsetDirective()) // COFF + NewCU->addDelta(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, + Asm->GetTempSymbol("section_line"), 0); // will e...
2015 May 28
4
[LLVMdev] Generate .debug_info for asm files?
Dear LLVM devs, I've noticed that LLVM's assembler (and hence clang) doesn't generate debug data when assembling, even when run with "-g". Users can add their own CFI/line number data with assembler directives. But GDB ignores the line number data if you don't have a DIE in the .debug_info section which identifies the compilation unit. (I'm not an expert on GDB, but
2010 Jun 29
0
[LLVMdev] [patch] DwarfDebug problem with line section
...tion. We believe that the following code is wrong: > // DW_AT_stmt_list is a offset of line number information for this > // compile unit in debug_line section. It is always zero when only one > // compile unit is emitted in one object file. > addUInt(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0); > After compiling several files and linking them together (not only using our > backend, but also x86) debug information was incorrect. > I'm not 100% sure if this fix is correct, but patch attached. > Artur > > _______________________________________________ > LLVM De...
2012 Oct 26
5
[LLVMdev] Debug information under windows
Hello, Recently I found binaries produced with LLVM impossible to debug under Windows. This was probably related to the following bug: http://llvm.org/bugs/show_bug.cgi?id=13636 Asm generated from .ll files revealed that some offsets to debug information were incorrect: they were absolute instead of relative to their sections. Following patch seemed to have repaired the problem, so I'm
2014 Feb 19
2
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
...RM_data2 > .byte 3 # DW_AT_name > .byte 14 # DW_FORM_strp > .byte 17 # DW_AT_low_pc > .byte 1 # DW_FORM_addr > .byte 16 # DW_AT_stmt_list > .byte 6 # DW_FORM_data4 > .byte 27 # DW_AT_comp_dir > .byte 14 # DW_FORM_strp > .byte 0 # EOM(1) > .byte 0 # EOM(2) > .byte 2 # Abbreviation Code > .byte 46 # DW_TAG_subprog...
2010 Jun 29
2
[LLVMdev] [patch] DwarfDebug problem with line section
...that the following code is wrong: >> // DW_AT_stmt_list is a offset of line number information for this >> // compile unit in debug_line section. It is always zero when only one >> // compile unit is emitted in one object file. >> addUInt(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0); >> After compiling several files and linking them together (not only using our >> backend, but also x86) debug information was incorrect. >> I'm not 100% sure if this fix is correct, but patch attached. >> Artur >> >> ____________________________________...
2012 Aug 21
1
[LLVMdev] Dwarf debug info misses while clang codegen
...I use readelf. ( readelf -w exec > log ) There just have one TAG . Number TAG 1 DW_TAG_compile_unit [no children] DW_AT_producer DW_FORM_strp DW_AT_language DW_FORM_data2 DW_AT_name DW_FORM_strp DW_AT_low_pc DW_FORM_addr DW_AT_stmt_list DW_FORM_data4 DW_AT_comp_dir DW_FORM_strp Unknown AT value: 3fe1 DW_FORM_flag Unknown AT value: 3fe2 DW_FORM_strp I can't find other dwarf TAG in my object file. Is the metadata wrong? Or I loss some step when I generate metadata? If you need my pass's source. Please give me your mail....
2014 Feb 18
1
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
All of this information is contained in the DWARF debug info that you must generate. Are you generating DWARF? If not, you will need to. If so, please attach an example program that contains DWARF and specify which function you are having trouble getting variable information for. Greg Clayton On Feb 18, 2014, at 12:44 AM, 杨勇勇 <triple.yang at gmail.com> wrote: > Hi, all > > I
2014 Feb 18
4
[LLVMdev] How is variable info retrieved in debugging for executables generated by llvm backend?
Hi, all I ported llvm backend and lldb recently. Both tools can basically work. lldb is able to debug programs in asm style and frame unwinding is OK. But "frame variable XX" does not work because lldb is not able to determine the address of XX from debug info. Can someone give any clue? Thanks in advance. -- 杨勇勇 (Yang Yong-Yong) -------------- next part -------------- An HTML
2010 Jun 30
0
[LLVMdev] [patch] DwarfDebug problem with line section
...code is wrong: > >> // DW_AT_stmt_list is a offset of line number information for this > >> // compile unit in debug_line section. It is always zero when only one > >> // compile unit is emitted in one object file. > >> addUInt(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0); > >> After compiling several files and linking them together (not only using > our > >> backend, but also x86) debug information was incorrect. > >> I'm not 100% sure if this fix is correct, but patch attached. > >> Artur > >> > >> _...
2012 Mar 20
0
[LLVMdev] Runtime linker issue wtih X11R6 on i386 with -O3 optimization
...# DW_FORM_data2 .byte 3 # DW_AT_name .byte 8 # DW_FORM_string .byte 82 # DW_AT_entry_pc .byte 1 # DW_FORM_addr .byte 16 # DW_AT_stmt_list .byte 6 # DW_FORM_data4 .byte 27 # DW_AT_comp_dir .byte 8 # DW_FORM_string .byte 0 # EOM(1) .byte 0 # EOM(2) .byte 2 # Abbreviation Code .byte 36 # DW_TAG_base_type .byte 0...
2020 Jun 22
3
Hardware ASan Generating Unknown Instruction
Hi, I am trying to execute a simple hello world program compiled like so: path/to/compiled/clang -o test --target=aarch64-linux-gnu -march=armv8.5-a -fsanitize=hwaddress --sysroot=/usr/aarch64-linux-gnu/ -L/usr/lib/gcc/aarch64-linux-gnu/10.1.0/ -g test.c However, when I look at the disassembly, there is an unknown instruction listed at 0x2d51c: 000000000002d4c0 main: 2d4c0: ff c3 00 d1
2014 Feb 20
2
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
...> .byte 14 # DW_FORM_strp > > .byte 17 # DW_AT_low_pc > > .byte 1 # DW_FORM_addr > > .byte 16 # DW_AT_stmt_list > > .byte 6 # DW_FORM_data4 > > .byte 27 # DW_AT_comp_dir > > .byte 14 # DW_FORM_strp > > .byte 0 # EOM(1) > > .byte 0 # EOM(2) > > .byte 2 # Abbrevi...
2016 May 08
2
Debug info scope of explicit casting type does not seem correct
That happens because we create the subprogram below as a context to the “DW_TAG_typedef” that was created as a type to “DW_TAG_pointer_type” that was added to the retained type list because of the explicit cast to (T*). This is the code that creates DW_TAG_subprogram: DIE *DwarfUnit::getOrCreateSubprogramDIE(const DISubprogram *SP, bool Minimal) { ... // DW_TAG_inlined_subroutine may refer