You have to be careful about including static variables in the type of a class, 
since it is not uncommon to have a class which has a static variable that is an 
instance of itself, so you can get into display cycles.  gdb showed statics as 
part of the object display, and had some "set" variable you would set to avoid 
cycles (usually after you had hung once because of it...)  We didn't want to 
play that game, plus I think it's kind of ugly to have the statics show up in 
object displays, so at present we just leave the statics out of the type 
representations.  But we could add them as a side-car to the type, but leave 
them separate from the ivars.  I assume you can get them from the clang's type 
for the class...

Jim

> On Jul 16, 2014, at 6:42 AM, Carlo Kok <c...@remobjects.com> wrote:
> 
> I've explored the internal and external apis for LLDB, but I cannot find any 
> way to expose (from LLVM) a static field on a class (like Java: class Test { 
> public static int A = 15; }) or a constant on a class. How do I do this and 
> read it out again with LLDB?
> 
> 
> -- 
> Carlo Kok
> RemObjects Software
> _______________________________________________
> lldb-dev mailing list
> lldb-dev@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

_______________________________________________
lldb-dev mailing list
lldb-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to