Displaying 20 results from an estimated 400 matches similar to: "[LLVMdev] Minimizing -gmlt"
2014 Aug 28
2
[LLVMdev] Minimizing -gmlt
On Thu, Aug 28, 2014 at 11:51 AM, Alexey Samsonov <vonosmas at gmail.com>
wrote:
> This sounds great. Teaching backend about the -gmlt might help us in
> another way: we might enforce full debug info generation in the frontend
> for -fsanitize= flags, then rely on some parts of this debug info in
> instrumentation passes and prune it before the actual object file
>
2013 Mar 09
1
[LLVMdev] Question about abstract subprograms in debug info
Hi,
I am working on an issue where a subprogram created here is having abstract_origin pointing to nowhere.
DIE *DwarfDebug::updateSubprogramScopeDIE(CompileUnit *SPCU,
const MDNode *SPNode) {
DIE *SPDie = SPCU->getDIE(SPNode);
assert(SPDie && "Unable to find subprogram DIE!");
DISubprogram SP(SPNode);
// If we're
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
2014 Aug 28
2
[LLVMdev] Minimizing -gmlt
On Wed, Aug 27, 2014 at 4:53 PM, Chandler Carruth <chandlerc at google.com>
wrote:
>
> On Wed, Aug 27, 2014 at 4:40 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>> DW_AT_frame_base (the location of the frame pointer - is that needed for
>> symbolication?)
>
>
> I think this is used by libunwind style stack unwinders in conjunction
> with
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 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 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
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-----
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
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] (
2014 Nov 05
2
[LLVMdev] Inline Symbolication with -gsplit-dwarf
So, after many shenanigans, we finally have -gmlt-like inline summary debug
info in .debug_info when using -gsplit-dwarf (see r221306). Hooray \o/
Testing this with asan, it seems to be working:
Given a simple example of inlining failure:
$ cat asan.cpp
__attribute__((always_inline)) inline void func(int* i) { *i = 3; }
int main() {
func(nullptr);
}
The failures before this change:
#0
2014 Oct 27
2
[LLVMdev] Recent changes in -gmlt break sample profiling
On Sun, Oct 26, 2014 at 7:23 PM, Xinliang David Li <xinliangli at gmail.com>
wrote:
> The fundamental questions we need to answer are the following:
>
FWIW, there was a longer discussion on the lists when the actual option was
added. I'll try to relay my memory of that discussion, but you might need
to track it down or involve some of the other people who participated in
it.
2014 Oct 27
2
[LLVMdev] Recent changes in -gmlt break sample profiling
On Fri, Oct 24, 2014 at 4:06 PM, Xinliang David Li <xinliangli at gmail.com>
wrote:
> Diego,
>
> I think sampleFDO needs to be designed in a way which can protect itself
> from future breakage like this. The roots in the unnecessary dependency of
> sample FDO on gmlt setting. It is totally reasonable to tune debug binary
> size by changes like this.
>
> The right way
2014 Oct 24
2
[LLVMdev] Recent changes in -gmlt break sample profiling
I'm not sure if this was intended, but it's going to be a problem for
sample profiles.
When we compile with -gmlt, the profiler expects to find the line number
for all the function headers so that it can compute relative line locations
for the profile.
The tool that reads the ELF binary is not finding them, so it writes out
absolute line numbers, which are impossible to match during the
2014 Oct 24
9
[LLVMdev] Recent changes in -gmlt break sample profiling
On Fri Oct 24 2014 at 6:21:14 PM David Blaikie <dblaikie at gmail.com> wrote:
> On Fri, Oct 24, 2014 at 3:16 PM, Diego Novillo <dnovillo at google.com>
> wrote:
>
>>
>>
>> On Fri Oct 24 2014 at 6:11:21 PM David Blaikie <dblaikie at gmail.com>
>> wrote:
>>
>>> On Fri, Oct 24, 2014 at 2:48 PM, Diego Novillo <dnovillo at
2013 Oct 31
3
[LLVMdev] Preserving accurate stack traces with optimization?
On 10/30/13 7:09 PM, Philip Reames wrote:
> David, Quentin - Thanks for the feedback. Responses inline.
>
> On 10/30/13 11:21 AM, David Blaikie wrote:
>> Actually CCing Eric.
>>
>>
>> On Wed, Oct 30, 2013 at 11:00 AM, Quentin Colombet
>> <qcolombet at apple.com <mailto:qcolombet at apple.com>> wrote:
>>
>> Philip,
>>
2014 Oct 24
2
[LLVMdev] Recent changes in -gmlt break sample profiling
On Fri Oct 24 2014 at 6:11:21 PM David Blaikie <dblaikie at gmail.com> wrote:
> On Fri, Oct 24, 2014 at 2:48 PM, Diego Novillo <dnovillo at google.com>
> wrote:
>
>> I'm not sure if this was intended, but it's going to be a problem for
>> sample profiles.
>>
>> When we compile with -gmlt, the profiler expects to find the line number
>>