[lldb-dev] static fields and consts on a class

Carlo Kok ck at remobjects.com
Fri Jul 25 00:28:41 PDT 2014


On Sat, 19 Jul 2014 00:32:28 +0200, Greg Clayton <gclayton at apple.com>  
wrote:

> Are you asking how to read a static variable from a SBTarget? Or are you  
> asking how to expose a static variable through the lldb::SB API?

I'm asking how I can say "There's a static variable inside this class" in  
LLVM and then read it back with LLDB once I did that.

>
>> On Jul 16, 2014, at 6:42 AM, Carlo Kok <ck at 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



More information about the lldb-dev mailing list