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.

Jim


> On Jun 1, 2015, at 8:47 AM, Eugene Birukov <eugen...@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@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