Displaying 20 results from an estimated 30 matches for "dw_form_addr".
2011 Feb 24
0
[LLVMdev] [patch] Dwarf Debug info support for COFF object files
...; LLVM :: FrontendC/2009-02-17-BitField-dbg.c
> LLVM :: FrontendC/2010-01-14-StaticVariable.c
> LLVM :: FrontendC/2010-02-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())...
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
2014 Feb 19
2
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
...ORM_strp
> .byte 19 # DW_AT_language
> .byte 5 # DW_FORM_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)
&g...
2017 Apr 04
2
GDB doesn't work with IR-originated debug info
...W_TAG_base_type [10]
DW_AT_name [DW_FORM_strp] ( .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_F...
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
2012 Mar 20
0
[LLVMdev] Runtime linker issue wtih X11R6 on i386 with -O3 optimization
...# DW_FORM_string
.byte 19 # DW_AT_language
.byte 5 # 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...
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
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
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
2016 Dec 16
2
GDB pretty printers for LLVM ADTs
...Code = 1,
Tag = llvm::dwarf::Tag::DW_TAG_compile_unit,
CodeByteSize = 1 '\001',
HasChildren = false,
AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
Form = llvm::dwarf::Form::DW_FORM_addr,
ByteSize = llvm::Optional is not initialized
}, {
Attr = llvm::dwarf::Attribute::DW_AT_high_pc,
Form = llvm::dwarf::Form::DW_FORM_data8,
ByteSize = llvm::Optional is initialized = {
value = 8 '\b'
}
Here y...
2012 Aug 21
1
[LLVMdev] Dwarf debug info misses while clang codegen
...I can't find my debug info when 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...
2016 Dec 17
0
GDB pretty printers for LLVM ADTs
...lvm::dwarf::Tag::DW_TAG_compile_unit,
> CodeByteSize = 1 '\001',
> HasChildren = false,
> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
> Form = llvm::dwarf::Form::DW_FORM_addr,
> ByteSize = llvm::Optional is not initialized
> }, {
> Attr = llvm::dwarf::Attribute::DW_AT_high_pc,
> Form = llvm::dwarf::Form::DW_FORM_data8,
> ByteSize = llvm::Optional is initialized = {
> value = 8 '...
2016 Nov 17
3
DWARF Generator
...AT_name, DW_FORM_strp, "/tmp/main.c");
CUDie.addAttribute(DW_AT_language, DW_FORM_data2, DW_LANG_C);
DwarfGenDIE SubprogramDie = CUDie.addChild(DW_TAG_subprogram);
SubprogramDie.addAttribute(DW_AT_name, DW_FORM_strp, "main");
SubprogramDie.addAttribute(DW_AT_low_pc, DW_FORM_addr, 0x1000U);
SubprogramDie.addAttribute(DW_AT_high_pc, DW_FORM_addr, 0x2000U);
DwarfGenDIE IntDie = CUDie.addChild(DW_TAG_base_type);
IntDie.addAttribute(DW_AT_name, DW_FORM_strp, "int");
IntDie.addAttribute(DW_AT_encoding, DW_FORM_data1, DW_ATE_signed);
IntDie.addAttribute(...
2016 Dec 19
2
GDB pretty printers for LLVM ADTs
...TAG_compile_unit,
>> CodeByteSize = 1 '\001',
>> HasChildren = false,
>> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
>> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
>> Form = llvm::dwarf::Form::DW_FORM_addr,
>> ByteSize = llvm::Optional is not initialized
>> }, {
>> Attr = llvm::dwarf::Attribute::DW_AT_high_pc,
>> Form = llvm::dwarf::Form::DW_FORM_data8,
>> ByteSize = llvm::Optional is initialized = {
>>...
2016 Dec 20
0
GDB pretty printers for LLVM ADTs
...lvm::dwarf::Tag::DW_TAG_compile_unit,
> CodeByteSize = 1 '\001',
> HasChildren = false,
> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
> Form = llvm::dwarf::Form::DW_FORM_addr,
> ByteSize = llvm::Optional is not initialized
> }, {
> Attr = llvm::dwarf::Attribute::DW_AT_high_pc,
> Form = llvm::dwarf::Form::DW_FORM_data8,
> ByteSize = llvm::Optional is initialized = {
> value = 8 '...
2016 Dec 20
2
GDB pretty printers for LLVM ADTs
...TAG_compile_unit,
>> CodeByteSize = 1 '\001',
>> HasChildren = false,
>> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
>> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
>> Form = llvm::dwarf::Form::DW_FORM_addr,
>> ByteSize = llvm::Optional is not initialized
>> }, {
>> Attr = llvm::dwarf::Attribute::DW_AT_high_pc,
>> Form = llvm::dwarf::Form::DW_FORM_data8,
>> ByteSize = llvm::Optional is initialized = {
>>...
2016 Dec 20
0
GDB pretty printers for LLVM ADTs
...lvm::dwarf::Tag::DW_TAG_compile_unit,
> CodeByteSize = 1 '\001',
> HasChildren = false,
> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
> Form = llvm::dwarf::Form::DW_FORM_addr,
> ByteSize = llvm::Optional is not initialized
> }, {
> Attr = llvm::dwarf::Attribute::DW_AT_high_pc,
> Form = llvm::dwarf::Form::DW_FORM_data8,
> ByteSize = llvm::Optional is initialized = {
> value = 8 '...
2016 Nov 18
4
DWARF Generator
...uot;/tmp/main.c");
> CUDie.addAttribute(DW_AT_language, DW_FORM_data2, DW_LANG_C);
>
> DwarfGenDIE SubprogramDie = CUDie.addChild(DW_TAG_subprogram);
> SubprogramDie.addAttribute(DW_AT_name, DW_FORM_strp, "main");
> SubprogramDie.addAttribute(DW_AT_low_pc, DW_FORM_addr, 0x1000U);
> SubprogramDie.addAttribute(DW_AT_high_pc, DW_FORM_addr, 0x2000U);
>
> DwarfGenDIE IntDie = CUDie.addChild(DW_TAG_base_type);
> IntDie.addAttribute(DW_AT_name, DW_FORM_strp, "int");
> IntDie.addAttribute(DW_AT_encoding, DW_FORM_data1, DW_ATE_signed)...
2016 Dec 20
2
GDB pretty printers for LLVM ADTs
...TAG_compile_unit,
>> CodeByteSize = 1 '\001',
>> HasChildren = false,
>> AttributeSpecs = llvm::SmallVector of length 8, capacity 8 = {{
>> Attr = llvm::dwarf::Attribute::DW_AT_low_pc,
>> Form = llvm::dwarf::Form::DW_FORM_addr,
>> ByteSize = llvm::Optional is not initialized
>> }, {
>> Attr = llvm::dwarf::Attribute::DW_AT_high_pc,
>> Form = llvm::dwarf::Form::DW_FORM_data8,
>> ByteSize = llvm::Optional is initialized = {
>>...
2014 Feb 20
2
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
...gt; > .byte 5 # DW_FORM_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...