function = symbol.GetStartAddress().GetFunction()

You won't always have a function. You will only have a function if you have 
debug info. Without debug info you will not get a compile unit, function, 
block, or line entry.

> On Sep 21, 2014, at 5:35 AM, Carlo Kok <c...@remobjects.com> wrote:
> 
> I use the get function(s) api to look for sel_registerName, which gives me an 
> SBSymbolContext, but for some reason (probably missing debug info) I don't 
> get a Function, only a Symbol, how do I get an SBFunction from an SBSymbol?
> 
> -- 
> 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