[Lldb-commits] [PATCH] D65152: Fix issues with inferior stdout coming out of order

2019-07-31 Thread Pavel Labath via Phabricator via lldb-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL367418: Fix issues with inferior stdout coming out of order (authored by labath, committed by ). Herald added a project: L

[Lldb-commits] [PATCH] D65152: Fix issues with inferior stdout coming out of order

2019-07-24 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 211439. labath added a comment. Thanks for the feedback. Updating the patch to avoid calling the flush function twice. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65152/new/ https://reviews.llvm.org/D65152 Files: include/lldb/Core/Debugger.h

[Lldb-commits] [PATCH] D65152: Fix issues with inferior stdout coming out of order

2019-07-23 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. I agree with Greg, having one function that can do any of the combinations of stdout & stderr seems more convenient. Other than that, this is fine. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65152/new/ https://reviews.llvm.org/D65152

[Lldb-commits] [PATCH] D65152: Fix issues with inferior stdout coming out of order

2019-07-23 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: include/lldb/Core/Debugger.h:350 + std::mutex m_output_flush_mutex; + void FlushProcessOutput(Process &process, bool is_stdout); What about making this function: ``` void Debugger::FlushProcessOutput(Process &proce

[Lldb-commits] [PATCH] D65152: Fix issues with inferior stdout coming out of order

2019-07-23 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 211328. labath added a comment. Remove sleep, left over from testing. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65152/new/ https://reviews.llvm.org/D65152 Files: include/lldb/Core/Debugger.h include/lldb/Interpreter/CommandInterpreter.h so

[Lldb-commits] [PATCH] D65152: Fix issues with inferior stdout coming out of order

2019-07-23 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: clayborg, jingham. Herald added a subscriber: jfb. We've had a bug where two pieces of code, executing on two threads were attempting to write inferior output simultaneously. The first one was in Debugger::HandleProcessEvent, which handled the