[lldb-dev] clangfunction & type aliases/custom types

Greg Clayton gclayton at apple.com
Mon Sep 22 11:06:40 PDT 2014

If you have no debug info, you will only get symbols. You won't have types if you don't have debug info either. There is some support for getting objc types from the runtime, but you won't be able to request any SBType values from any SBModule or SBTarget objects if you don't have debug info. I know the expression parse does some extra stuff to be able to play with objc types, so you might have to run an expression in order to be able to extract the type from the result.

value = lldb.frame.EvaluateExpression("NSString *a = nil; a")

Then you can get the type using:

t = value.GetType()

> On Sep 21, 2014, at 1:01 PM, Carlo Kok <ck at remobjects.com> wrote:
> I've been trying to use clangfunction to execute a function in my program, but all my functions return an typedef type, or an objc type, whatever I try though I get: error: unknown type name 'NSString'
> what am I missing in either my codegen or calling code to get this all working? obviously these types are known to the debugger itself
> -- 
> Carlo Kok
> RemObjects Software
> _______________________________________________
> 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