[lldb-dev] C++ API: How to get information about module load?

Jim Ingham jingham at apple.com
Mon Jun 1 11:56:24 PDT 2015

The code to get data from Events in the lldb SB API's usually lives in the class that broadcasts them.  In this case, you want SBTarget::GetNumModulesFromEvent and SBTarget::GetModuleAtIndexFromEvent.


> On Jun 1, 2015, at 8:47 AM, Eugene Birukov <eugenebi at hotmail.com> wrote:
> Hi,
> I created SBListener and subscribed to events using SBTarget::GetBroadcaster(). I successfully receive "modules-loaded" event. But how can I get to just loaded SBModule from there? In the code I see that on lldb_private:: side there is a data payload associated with the event, but it is not visible on the API side... 
> Also, I tried to get C string from event or print it to SBStream - I hoped to just parse it - there is no information there.
> Do I miss something or this feature is simply not implemented yet?
> Thanks,
> Eugene
> _______________________________________________
> 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