llvm-project/lldb/source/Host
Pavel Labath 4446487d71 Improve LLDB prompt handling
Summary:
There is an issue in lldb where the command prompt can appear at the wrong time. The partial fix
we have in for this is not working all the time and is introducing unnecessary delays. This
change does:
- Change Process:SyncIOHandler to use integer start id's for synchronization to avoid it being
  confused by quick start-stop cycles. I picked this up from a suggested patch by Greg to
  lldb-dev.
- coordinates printing of asynchronous text with the iohandlers. This is also based on a
  (different) Greg's patch, but I have added stronger synchronization to it to avoid races.

Together, these changes solve the prompt problem for me on linux (both with and without libedit).
I think they should behave similarly on Mac and FreeBSD and I think they will not make matters
worse for windows.

Test Plan: Prompt comes out alright. All tests still pass on linux.

Reviewers: clayborg, emaste, zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D9823

llvm-svn: 238313
2015-05-27 12:40:32 +00:00
..
android Get lldb-server building on android-9 2015-05-12 01:10:56 +00:00
common Improve LLDB prompt handling 2015-05-27 12:40:32 +00:00
freebsd Add NameMatches.h header to fix FreeBSD build after r232673 2015-03-19 02:47:36 +00:00
linux Move several plugin to its own namespace 2015-03-31 09:52:22 +00:00
macosx Look for both .debug and dsym debugging symbol information for stripped executable. 2015-04-24 18:09:54 +00:00
posix Did some cleanup to stop us from leaking Pipe file descriptors. 2015-05-23 03:54:53 +00:00
windows Implement PlatformWindows::GetEnvironment. 2015-05-22 19:34:17 +00:00
CMakeLists.txt Added XML to the host layer. 2015-05-26 18:00:51 +00:00
Makefile Fix configure+make build broken by r228943 2015-02-13 10:39:23 +00:00