[Lldb-commits] [PATCH] D11790: Fix ObjC++ types Class and id being defined in C and C++ expressions.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 19 12:27:05 PDT 2015


> On Aug 14, 2015, at 1:47 PM, Paul Herman <paulherman at google.com> wrote:
> 
> paulherman added a comment.
> 
> This patch does exactly that. It detects the language of the frame and upgrades it according to the rules you said (I think I might've missed ObjC -> ObjC++, but that can be added).
> 
> Regarding the global setting of ObjC, I believe it is not helpful. What I mean is, when debugging something in ObjC the frame is probably already ObjC.

That is not true.  ObjC and particularly Cocoa & UIKit have lots of useful functions that start with some global objects and drill down.  So it is not uncommon for folks to do "pause/run some ObjC introspection code" and pause will in general end up somewhere without debug info (often in a system trap...)  So at least for Apple lldb, ObjC++ should be the default for unknown frames.

Jim
 

> 
> Paul
> 
> 
> http://reviews.llvm.org/D11790
> 
> 
> 



More information about the lldb-commits mailing list