Re: [lldb-dev] Debug events in synchronous mode?

2016-02-04 Thread Jeffrey Tan via lldb-dev
Jim, thanks for the confirmation. It seems to me that there are many quirks of LLDB API that you have to be aware of before you can automate it correctly. Are these quirks documented somewhere that I missed? I have looked at examples/tests folders of LLDB and python API pages, both do not have enou

Re: [lldb-dev] Debug events in synchronous mode?

2016-02-04 Thread Jim Ingham via lldb-dev
In synchronous mode, you should never see events. The part of lldb that is making the command synchronous is using those events to make the command wait till the action it initiated completes before it returns. If it is letting process control events leak out, then that is a bug. If you are r

Re: [lldb-dev] Debug events in synchronous mode?

2016-02-04 Thread Pavel Labath via lldb-dev
Hi, I am not sure what are the "official" rules, but the general idea is that you need not concern yourself too much with events when you are in synchronous mode. In synchronous mode, you can be sure that by the time target.Launch() returns, the process will be stopped (or dead, or something else,

[lldb-dev] Debug events in synchronous mode?

2016-02-03 Thread Jeffrey Tan via lldb-dev
Hi, I found that if I am using synchronous mode, some times there are no debug events generated during launch. For example, for the code below, LLDBListenerThread will receive no debug events. Is this expected? What is the rule of debug events in synchronous mode? def main(): debugger = lldb