[lldb-dev] [Bug 45883] Wrong Back Trace Information at O3

2020-06-23 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=45883 Paul Robinson changed: What|Removed |Added Assignee|lldb-dev@lists.llvm.org |unassignedb...@nondot.org Product|ll

Re: [lldb-dev] LLDB Plugin: Listen for SBEvents when SBTarget is created from Xcode

2020-06-23 Thread Jim Ingham via lldb-dev
> On Jun 23, 2020, at 12:39 PM, Greg Clayton via lldb-dev > wrote: > > Here is example code showing what Jim was talking about: > > auto listener = debugger.GetListener(); > const uint32_t target_event_mask = lldb::SBTarget::eBroadcastBitModulesLoaded > | lldb::SBTarget::eBroadcastBitModules

Re: [lldb-dev] LLDB Plugin: Listen for SBEvents when SBTarget is created from Xcode

2020-06-23 Thread Greg Clayton via lldb-dev
Here is example code showing what Jim was talking about: auto listener = debugger.GetListener(); const uint32_t target_event_mask = lldb::SBTarget::eBroadcastBitModulesLoaded | lldb::SBTarget::eBroadcastBitModulesUnloaded | ...; const uint32_t process_event_mask = lldb::SBProcess::eBroadcastBitSt

Re: [lldb-dev] LLDB Plugin: Listen for SBEvents when SBTarget is created from Xcode

2020-06-23 Thread Jim Ingham via lldb-dev
Did you try getting the broadcaster class from SBTarget (SBTarget::GetBroadcasterClassName) and then in your Listener call StartListeningForEventClass? When you listen to an Event Class you get signed up for events for each new object of that class as it gets created. Jim > On Jun 23, 2020,

[lldb-dev] LLDB Plugin: Listen for SBEvents when SBTarget is created from Xcode

2020-06-23 Thread Derek Selander via lldb-dev
Forgive me if this was asked in the past. I did some combing through the archives with a "site:lists.llvm.org/pipermail/lldb-dev/ plugininitialize | Xcode | sbtarget” google query, but didn’t find anything relevant My ultimate goal is to build a helper tool which compliments Xcode when debuggin