Re: [lldb-dev] [BUG] Many lookup failures

2015-12-01 Thread David Blaikie via lldb-dev
On Tue, Dec 1, 2015 at 11:29 AM, Greg Clayton wrote: > So one other issue with removing debug info from the current binary for > base classes that are virtual: if the definition for the base class changes > in libb.so, but liba.so was linked against an older version of class B from > libb.so, lik

Re: [lldb-dev] [BUG] Many lookup failures

2015-12-01 Thread Greg Clayton via lldb-dev
So one other issue with removing debug info from the current binary for base classes that are virtual: if the definition for the base class changes in libb.so, but liba.so was linked against an older version of class B from libb.so, like for example: class A : public B { int m_a; }; If A w

Re: [lldb-dev] [BUG] Many lookup failures

2015-12-01 Thread Greg Clayton via lldb-dev
> On Nov 30, 2015, at 6:04 PM, Ramkumar Ramachandra wrote: > > On Mon, Nov 30, 2015 at 5:42 PM, Greg Clayton wrote: >> When we debug "a.out" again, we might have recompiled "liba.so", but not >> "libb.so" and when we debug again, we don't need to reload the debug info >> for "libb.so" if it h

Re: [lldb-dev] [BUG] Many lookup failures

2015-12-01 Thread Tamas Berghammer via lldb-dev
On Tue, Dec 1, 2015 at 2:11 AM David Blaikie via lldb-dev < lldb-dev@lists.llvm.org> wrote: > On Mon, Nov 30, 2015 at 6:04 PM, Ramkumar Ramachandra > wrote: > >> On Mon, Nov 30, 2015 at 5:42 PM, Greg Clayton wrote: >> > When we debug "a.out" again, we might have recompiled "liba.so", but >> not

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread David Blaikie via lldb-dev
On Mon, Nov 30, 2015 at 6:04 PM, Ramkumar Ramachandra wrote: > On Mon, Nov 30, 2015 at 5:42 PM, Greg Clayton wrote: > > When we debug "a.out" again, we might have recompiled "liba.so", but not > "libb.so" and when we debug again, we don't need to reload the debug info > for "libb.so" if it hasn'

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread Ramkumar Ramachandra via lldb-dev
On Mon, Nov 30, 2015 at 5:42 PM, Greg Clayton wrote: > When we debug "a.out" again, we might have recompiled "liba.so", but not > "libb.so" and when we debug again, we don't need to reload the debug info for > "libb.so" if it hasn't changed, we just reload "liba.so" and its debug info. > When w

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread Ramkumar Ramachandra via lldb-dev
On Mon, Nov 30, 2015 at 12:41 PM, Greg Clayton wrote: > class A : public B > { > }; > > where class "B" has all sorts of interesting methods, the debug info will > often look like: > > class B; // Forward declaration for class B > > class A : public B > { > }; What? Didn't we just fix this (for

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread David Blaikie via lldb-dev
On Mon, Nov 30, 2015 at 3:29 PM, Greg Clayton wrote: > > > On Nov 30, 2015, at 2:54 PM, David Blaikie wrote: > > > > > > > > On Mon, Nov 30, 2015 at 2:42 PM, Greg Clayton > wrote: > > > > > > This will print out the complete class definition that we have for > "CG::Node" including ivars and met

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread Greg Clayton via lldb-dev
> On Nov 30, 2015, at 2:54 PM, David Blaikie wrote: > > > > On Mon, Nov 30, 2015 at 2:42 PM, Greg Clayton wrote: > > > > This will print out the complete class definition that we have for > > "CG::Node" including ivars and methods. You should be able to see the > > inheritance structure and

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread David Blaikie via lldb-dev
On Mon, Nov 30, 2015 at 2:42 PM, Greg Clayton wrote: > > > > This will print out the complete class definition that we have for > "CG::Node" including ivars and methods. You should be able to see the > inheritance structure and you might need to also dump the type info for > each inherited class.

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread Greg Clayton via lldb-dev
> > This will print out the complete class definition that we have for "CG::Node" > including ivars and methods. You should be able to see the inheritance > structure and you might need to also dump the type info for each inherited > class. > > Compilers have been trying to not output a bunch

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread Greg Clayton via lldb-dev
> On Nov 30, 2015, at 1:57 PM, Eric Christopher wrote: > > > > On Mon, Nov 30, 2015 at 9:41 AM Greg Clayton via lldb-dev > wrote: > So be sure to enable -fno-limit-debug-info to make sure the compiler isn't > emitting lame debug info. > > > Greg cannot be more wrong here. There are some l

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread David Blaikie via lldb-dev
On Mon, Nov 30, 2015 at 1:57 PM, Eric Christopher wrote: > > > On Mon, Nov 30, 2015 at 9:41 AM Greg Clayton via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > >> So be sure to enable -fno-limit-debug-info to make sure the compiler >> isn't emitting lame debug info. >> >> > Greg cannot be more wro

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread Greg Clayton via lldb-dev
So the main question is probably that you have a "CG::Node" and it inherits from one or more other classes and we probably either didn't find definitions for one or more of these classes. I would like to verify this to make sure we understand the problem. Can you do a: (lldb) image dump -t "CG:

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread Eric Christopher via lldb-dev
On Mon, Nov 30, 2015 at 9:41 AM Greg Clayton via lldb-dev < lldb-dev@lists.llvm.org> wrote: > So be sure to enable -fno-limit-debug-info to make sure the compiler isn't > emitting lame debug info. > > Greg cannot be more wrong here. There are some limitations to be aware of when using limit debug

Re: [lldb-dev] [BUG] Many lookup failures

2015-11-30 Thread Greg Clayton via lldb-dev
So be sure to enable -fno-limit-debug-info to make sure the compiler isn't emitting lame debug info. If things are still failing, check to see what we think "CG::Node" contains by dumping the type info for it: (lldb) image lookup -t CG::Node This will print out the complete class definition t

[lldb-dev] [BUG] Many lookup failures

2015-11-25 Thread Ramkumar Ramachandra via lldb-dev
Hi, Basic things are failing. (lldb) p lhs (CG::VarExpr *) $0 = 0x00010d445ca0 (lldb) p lhs->rootStmt() (CG::ExprStmt *) $1 = 0x00010d446290 (lldb) p cg_pp_see_it(lhs->rootStmt()) (const char *) $2 = 0x00010d448020 "%A = $3;" (lldb) p cg_pp_see_it(def->rootStmt()) error: no member nam