Displaying 20 results from an estimated 400 matches similar to: "[LLVMdev] Dwarf debug info misses while clang codegen"
2012 Sep 21
1
[LLVMdev] relocation visitor
Currently llvm-dwarfdump isn't very useful on ELF .o files because it
doesn't apply relocations.
nlewycky at ducttape:~$ llvm-dwarfdump helloworld.o | grep debug_str\\[
0x0000000c: DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000000] =
"clang version 3.2 (trunk 163034)")
0x00000012: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000000] = "clang
version 3.2 (trunk
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
2020 Apr 23
2
Debug symbols are missing in elf
On Wed, Apr 22, 2020 at 10:34 PM David Blaikie <dblaikie at gmail.com> wrote:
>
>
>
> On Wed, Apr 22, 2020 at 9:28 AM Nagaraju Mekala via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>
>> On Tue, Apr 21, 2020 at 6:16 PM Robinson, Paul <paul.robinson at sony.com> wrote:
>> >
>> >
>> >
>> > > -----Original Message-----
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
2016 Nov 18
2
DWARF gotchas moving from 3.7.1 to 3.9.0
I recently upgraded a codebase to use LLVM 3.9.0, up from 3.7.1.
All seems to work well, except that I am unable to generate debug
information.
However, if I run objdump -g on the generated object file, it reports that
the compile unit has no children:
Contents of the .debug_abbrev section:
Number TAG (0x0)
1 DW_TAG_compile_unit [no children]
DW_AT_producer DW_FORM_strp
2020 Apr 22
2
Debug symbols are missing in elf
On Tue, Apr 21, 2020 at 6:16 PM Robinson, Paul <paul.robinson at sony.com> wrote:
>
>
>
> > -----Original Message-----
> > From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Nagaraju
> > Mekala via llvm-dev
> > Sent: Tuesday, April 21, 2020 6:04 AM
> > To: jh7370.2008 at my.bristol.ac.uk
> > Cc: LLVM Developers Mailing List
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
2016 Nov 18
2
DWARF gotchas moving from 3.7.1 to 3.9.0
Are you perhaps not calling
void Function::setSubprogram (DISubprogram * SP)
http://llvm.org/doxygen/classllvm_1_1Function.html#a05a19abc8ee11d5909275d980efa1670
?
-- adrian
> On Nov 18, 2016, at 8:46 AM, David Blaikie <dblaikie at gmail.com> wrote:
>
> (+Adrian who might have some more context here)
>
> Generally I'd suggest looking at Clang's code to see how
2017 Apr 04
2
GDB doesn't work with IR-originated debug info
Hi all,
Need your help.
I added some debug information to my code according to Kaleidoscope-9
sample and got stuck with a GDB error:
(gdb) info functions
> invalid dwarf2 offset 1849950870
>
My module is a DLL built with llc+ld toolchain. Target triple:
'i686-w64-mingw32'.
Looking this offset (1849950870 == 0x6e440296) in dwarfdump output of the
dll gave the following:
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
2015 Nov 13
2
[PATCH] D14358: DWARF's forward decl of a template should have template parameters.
On Fri, Nov 13, 2015 at 6:16 AM, <Peter_Marshall at sn.scee.net> wrote:
> Hi Paul,
>
> Sorry for the delay, I've been out of the office.
>
> I think this example shows that name matching does not always work:
>
> template<typename T> class A {
> public:
> A(T val);
> private:
> T x;
> };
>
> struct B {
> typedef
2015 Dec 09
2
[PATCH] D14358: DWARF's forward decl of a template should have template parameters.
On Wed, Dec 9, 2015 at 10:40 AM, Robinson, Paul <
Paul_Robinson at playstation.sony.com> wrote:
> That doesn't seem to be the DWARF I'm seeing from Clang (& it'd be
> surprising if we used the typedef (or otherwise non-canonical) name in the
> class name):
>
>
>
> Finally getting back to this….. Ha. We don't unwrap the typedefs ("name
> as
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 May 07
2
[LLVMdev] DWARF unmangled subprog name (DW_AT_name)
Hi,
I am looking for a way to get unmangled subprogram names from a
DWARFContext. The name I want is available in the attribute `DW_AT_name`
[1], but as far as I can tell this is only returned as a fallback in
`DWARFDebugInfoEntryMinimal::getSubroutineName` when the linkage name is
not available [2].
If this is not currently possible, is there any interest in adding such
access to the public
2015 Dec 09
2
[PATCH] D14358: DWARF's forward decl of a template should have template parameters.
On Wed, Dec 9, 2015 at 11:11 AM, Robinson, Paul <
Paul_Robinson at playstation.sony.com> wrote:
> Actually no, we prefer to have the original typedef names in the
> instantiation name, for source fidelity.
>
Then perhaps you should keep this change in your tree too - since that's
where the need is?
> "Name as it is in the source" or something reasonably close.
2014 May 07
2
[LLVMdev] DWARF unmangled subprog name (DW_AT_name)
That doesn't seem possible with the public API or am I mistaking?
On Wed, May 7, 2014 at 12:13 AM, Eric Christopher <echristo at gmail.com>wrote:
> On Tue, May 6, 2014 at 8:09 PM, Isaiah Norton <isaiah.norton at gmail.com>
> wrote:
> > Hi,
> >
> > I am looking for a way to get unmangled subprogram names from a
> > DWARFContext. The name I want is
2017 Apr 27
2
[DWARFv5] The new line-table section header
The next feature on my DWARF 5 list is the line-table header. While this
is pretty easy generate, it is a real bear to parse, so I thought I should
let y'all know what I'm up to and why as I head out to the yak farm. Any
thoughts and suggestions would be very much appreciated.
The v5 directory and file tables no longer have a fixed format; instead,
we have a list of field descriptors
2014 May 07
2
[LLVMdev] DWARF unmangled subprog name (DW_AT_name)
The use case is getting the short name for backtraces. There are other
options, but I figured it was worth a shot trying to access from the DWARF
structure because what we need is already stored there anyway.
Thanks,
Isaiah
On Wed, May 7, 2014 at 12:24 PM, Alexey Samsonov <samsonov at google.com>wrote:
> Yeah, public API of DebugInfo library is quite minimalistic. But I agree
>
2012 Mar 20
0
[LLVMdev] Runtime linker issue wtih X11R6 on i386 with -O3 optimization
I was told that my writeup lacked an example and details so I reproduced
the code that X uses and I was able to boil down the issue to a couple
of lines of code. Sorry again for the length of this email.
Code was compiled on OpenBSD with clang 3.0-release.
========================================================================
With -O0 which works as X expects: