[lldb-dev] How do I cast from a Value* to a ConstantDataArray* on LLDB command prompt?

Greg Clayton gclayton at apple.com
Fri May 3 11:52:18 PDT 2013


You need all namespaces to be qualified:

(lldb) expr (int8_t) llvm::cast<llvm::ConstantDataArray>(v)->isString()


On May 3, 2013, at 10:40 AM, Richard Catlin <richard.m.catlin at gmail.com> wrote:

> I tried this, it it doesn't work.
> 
> (lldb) expr (int8_t) cast<ConstantDataArray>(v)->isString()
> error: use of undeclared identifier 'cast'
> error: 'ConstantDataArray' does not refer to a value
> error: no member named 'isString' in 'llvm::Value'
> note: declared here
> 
> Thanks for any help.
> Richard Catlin
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev




More information about the lldb-dev mailing list