Re: [lldb-dev] Prefered way to identify target device in tests?

2016-02-12 Thread Greg Clayton via lldb-dev
> On Feb 11, 2016, at 12:15 PM, Ted Woodward via lldb-dev > wrote: > > I’m working on getting the tests running with Hexagon, and have a question > about identifying the target architecture. > > Hexagon LLVM doesn’t use a couple architectures like “x86_64” or “i386”, > instead we have many

Re: [lldb-dev] Making a new symbol provider

2016-02-12 Thread Greg Clayton via lldb-dev
> On Feb 11, 2016, at 6:56 PM, Zachary Turner wrote: > > > > On Thu, Feb 11, 2016 at 5:35 PM Greg Clayton wrote: > > > On Feb 11, 2016, at 3:41 PM, Zachary Turner via lldb-dev > > wrote: > > > > Hi, > > > > I want to make a new symbol provider to teach LLDB to understand microsoft > > PDB

Re: [lldb-dev] Why is storing SBTarget in a private field causing random crash?

2016-02-12 Thread Greg Clayton via lldb-dev
This is a clear bug in LLDB. If you have a repro case, please file a bug and attach the instructions on how to make this happen. Our API must be able to handle things like this. SBTarget has a shared pointer to a lldb_private::Target. If you have a reference to a target, it should keep that tar

Re: [lldb-dev] Race condition crashes during launching LLDB

2016-02-12 Thread Greg Clayton via lldb-dev
If you are going to set async to true, then you must consume the events by waiting for events. See the following example: svn cat http://llvm.org/svn/llvm-project/lldb/trunk/examples/python/process_events.py So you can rewrite your wait_for_process_stop to use the debugger to fetch the events

Re: [lldb-dev] Race condition crashes during launching LLDB

2016-02-12 Thread Greg Clayton via lldb-dev
The main problem you are running into is in async mode when you say "launch" or "continue", those calls will return immediately and you must consume the events to make sure it is safe to do things. If your process is stopped, then until your actually resume your process with process.Continue() o

Re: [lldb-dev] Making a new symbol provider

2016-02-12 Thread Zachary Turner via lldb-dev
On Fri, Feb 12, 2016 at 9:41 AM Greg Clayton wrote: > > > On Feb 11, 2016, at 6:56 PM, Zachary Turner wrote: > > > > > > > > On Thu, Feb 11, 2016 at 5:35 PM Greg Clayton wrote: > > > > > On Feb 11, 2016, at 3:41 PM, Zachary Turner via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > > > > > Hi,

Re: [lldb-dev] Why is storing SBTarget in a private field causing random crash?

2016-02-12 Thread Jim Ingham via lldb-dev
The broadcasters and listeners depend mutually on one another. The listener keeps a list of the broadcasters it is listening to, and the broadcaster a list of the listeners it is broadcasting to. When the broadcaster goes down it removes the listeners from its list and ditto for the listeners

Re: [lldb-dev] Making a new symbol provider

2016-02-12 Thread Zachary Turner via lldb-dev
On Thu, Feb 11, 2016 at 5:35 PM Greg Clayton wrote: > > > 5. ParseCompileUnitLineTable. On the LineTable class you can add "line > sequences" or individual entries. What's the difference here? Is there > any disadvantage to adding every single line entry in the line table using > the InsertLin