[lldb-dev] Get SBFunction from SBSymbol

Greg Clayton gclayton at apple.com
Mon Sep 22 11:02:54 PDT 2014

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 <ck at 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 at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

More information about the lldb-dev mailing list