[lldb-dev] clangfunction & type aliases/custom types
Carlo Kok
ck at remobjects.com
Mon Sep 22 11:27:41 PDT 2014
On Mon, 22 Sep 2014 20:06:40 +0200, Greg Clayton <gclayton at apple.com>
wrote:
> 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()
Yeah actually that's the problem. It's completely aware of NSString and
other types, I can even get the Canonical type if it's a typedef, it's
just that the parser inside ClangFunction is unaware of these types. so I
can get an SBType just fine.
--
Carlo Kok
RemObjects Software
More information about the lldb-dev
mailing list