Displaying 20 results from an estimated 700 matches similar to: "[LLVMdev] Runtime linker issue wtih X11R6 on i386 with -O3 optimization"
2014 Feb 19
2
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
Sorry, this is the attachment.
2014-02-19 15:08 GMT+08:00 杨勇勇 <triple.yang at gmail.com>:
> Thank you.
>
> Here is an example and the attchment contains extra files including object
> file and executable file.
> I want to print for example the value of "a", but lldb command "frame
> variable a" displays "0" and so does "b", and
2014 Feb 20
2
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
Thank you, Clayton. This is very helpful.
We use the LLDB specific GDB remote extensions, and our debugger server
supports "qRegisterInfo" package. "reg 0x3c" is the frame pointer.
In the example mentioned above, we have SP = FP - 40 for current call frame.
And variable "a" is stored at address (FP + -24) from asm instruction [FP +
-24] = R3;;
Thus we can conclude
2016 May 07
2
Debug info scope of explicit casting type does not seem correct
Hi David,
OK, I got that DIE in Compile Unit scope may point to a DIE in subprogram scope.
But how about that we are emitting a subprogram entry that has no attributes?
0x0000002b: DW_TAG_subprogram [3] *
0x0000002c: DW_TAG_typedef [4]
DW_AT_type [DW_FORM_ref4] (cu + 0x0040 => {0x00000040})
DW_AT_name [DW_FORM_strp] (
2016 Apr 30
2
Debug info scope of explicit casting type does not seem correct
Hi,
I am wondering if this behavior of creating debug info is correct.
A type in compile unit entry is pointing to a type under subprogram entry?!
This is the root cause of https://llvm.org/bugs/show_bug.cgi?id=27579
0x0000000b: DW_TAG_compile_unit [1] *
0x00000026: DW_TAG_pointer_type [2]
DW_AT_type [DW_FORM_ref4] (cu + 0x002c => {0x0000002c})
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
2016 Mar 23
1
Clang/LLVM producing incomplete & erroneous debug information
Hi everyone,
I'm trying to get debug information for a C/pthreads application, but it
seems like clang/LLVM are producing limited & erroneous debugging
information. I've attached a simple test example to reproduce the problem
-- I'm using clang/LLVM 3.7.1 built from source on Ubuntu 14.04.
I compile the attached file with:
$ clang -O1 -g test.c -lpthread
If I run:
$ readelf
2012 Feb 24
1
[LLVMdev] DW_AT_inline not present in assembly for an inlined inline function
Hello
I am trying to run following test case on Clang compiled output to compare
the dwarf inline attributes in the resulting assembly output .
/* Inlined inline function must have abstract DIE */
/* { dg-do compile } */
/* { dg-options "-O2 -gdwarf-2 -dA -fpreprocessed" } */
/* { dg-final { scan-assembler "3.*DW_AT_inline" } } */
#1 "test.h"
inline int t()
{
}
int
2010 Nov 07
3
[LLVMdev] Next round of DWARF issues/questions
After to speaking to Devang and a number of other people at the developer's
conference, I was able to make some forward progress on getting debugging to
work. I'm now able to actually single-step through my program and set
breakpoints, and examine function parameters.
However, I'm also seeing a lot of new problems which weren't exposed before.
After spending the better part of two
2010 Nov 09
0
[LLVMdev] Next round of DWARF issues/questions
On Nov 8, 2010, at 10:52 PM, Talin <viridia at gmail.com> wrote:
> On Mon, Nov 8, 2010 at 9:56 AM, Devang Patel <dpatel at apple.com> wrote:
>
> On Nov 6, 2010, at 7:35 PM, Talin wrote:
>
>> After to speaking to Devang and a number of other people at the developer's conference, I was able to make some forward progress on getting debugging to work. I'm now
2020 Jan 01
2
DW_OP_implicit_pointer design/implementation in general
Hi David,
Happy new year !
I just uploaded a POC patch that covers the cases when pointer points to
un-named variables using DW_OP_implicit_pointer (references and dynamic
allocation). This is using artificial variable as suggested by Paul.
https://reviews.llvm.org/D72055
I hope that now it should address your concerns.
Scope of DW_OP_implicit_pointer: As we initially decided split of
2010 Nov 08
0
[LLVMdev] Next round of DWARF issues/questions
On Nov 6, 2010, at 7:35 PM, Talin wrote:
> After to speaking to Devang and a number of other people at the developer's conference, I was able to make some forward progress on getting debugging to work. I'm now able to actually single-step through my program and set breakpoints, and examine function parameters.
>
> However, I'm also seeing a lot of new problems which
2010 Nov 09
2
[LLVMdev] Next round of DWARF issues/questions
On Mon, Nov 8, 2010 at 9:56 AM, Devang Patel <dpatel at apple.com> wrote:
>
> On Nov 6, 2010, at 7:35 PM, Talin wrote:
>
> After to speaking to Devang and a number of other people at the developer's
> conference, I was able to make some forward progress on getting debugging to
> work. I'm now able to actually single-step through my program and set
> breakpoints,
2012 Feb 11
0
[LLVMdev] DW_TAG_base_type missing DW_AT_name for subrange types
Hi,
ctfconvert is particularly unhappy about that (e.g., ERROR: ctfconvert:
die 141: base type without name). Is it intended behavior?
Simple testcase:
int
main(void)
{
int i[2];
return 0;
}
dwarfdump output:
clang version 3.0 (tags/RELEASE_30/final):
[...]
LOCAL_SYMBOLS:
[...]
<3>< 120> DW_TAG_variable
DW_AT_name i
2012 Feb 11
2
[LLVMdev] DW_TAG_base_type missing DW_AT_name for subrange types
Hi,
ctfconvert is particularly unhappy about that (e.g., ERROR: ctfconvert:
die 141: base type without name). Is it intended behavior?
Simple testcase:
int
main(void)
{
int i[2];
return 0;
}
dwarfdump output:
clang version 3.0 (tags/RELEASE_30/final):
[...]
LOCAL_SYMBOLS:
[...]
<3>< 120> DW_TAG_variable
DW_AT_name i
2010 Nov 26
0
[LLVMdev] Next round of DWARF issues/questions
On Thu, Nov 25, 2010 at 5:55 PM, Talin <viridia at gmail.com> wrote:
> On Tue, Nov 9, 2010 at 9:04 AM, Devang Patel <dpatel at apple.com> wrote:
>
>>
>>
>> On Nov 8, 2010, at 10:52 PM, Talin <viridia at gmail.com> wrote:
>>
>> On Mon, Nov 8, 2010 at 9:56 AM, Devang Patel < <dpatel at apple.com>
>> dpatel at apple.com> wrote:
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
2016 Nov 18
2
DWARF Generator
On Fri, Nov 18, 2016 at 10:18 AM Eric Christopher <echristo at gmail.com>
wrote:
> On Fri, Nov 18, 2016 at 8:43 AM Greg Clayton <gclayton at apple.com> wrote:
>
>
> > On Nov 17, 2016, at 5:40 PM, Robinson, Paul <paul.robinson at sony.com>
> wrote:
> >
> >
> >
> >> -----Original Message-----
> >> From: Greg Clayton
2010 Nov 26
3
[LLVMdev] Next round of DWARF issues/questions
On Tue, Nov 9, 2010 at 9:04 AM, Devang Patel <dpatel at apple.com> wrote:
>
>
> On Nov 8, 2010, at 10:52 PM, Talin <viridia at gmail.com> wrote:
>
> On Mon, Nov 8, 2010 at 9:56 AM, Devang Patel < <dpatel at apple.com>
> dpatel at apple.com> wrote:
>
>>
>> On Nov 6, 2010, at 7:35 PM, Talin wrote:
>>
>> After to speaking to Devang
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
2019 Dec 10
2
aarch64 do not generate debug info for tls var
Hi Devs,
consider below testcase
$cat test.c
__thread int mtls=1;
void foo(){
mtls++;
}
it emits this debug info for mtls
0x0000002a: DW_TAG_variable
DW_AT_name ("mtls")
DW_AT_type (0x00000035 "int")
DW_AT_external (true)
DW_AT_decl_file ("test.c")
DW_AT_decl_line (1)