llvm-project/lldb/source
Pavel Labath 240760207e Add a read_full_buffer argument to ConnectionFileDescriptor::Read
Summary:
AdbClient was attempting to handle the case where the socket input arrived in pieces, but it was
failing to handle the case where the connection was closed before that happened. In this case, it
would just spin in an infinite loop calling Connection::Read. (This was also the cause of the
spurious timeouts on the darwin->android buildbot. The exact cause of the premature EOF remains
to be investigated, but is likely a server bug.)

Since this wait-for-a-certain-number-of-bytes seems like a useful functionality to have, I am
moving it (with the infinite loop fixed) to the Connection class, and adding an
appropriate test for it.

Reviewers: clayborg, zturner, ovyalov

Subscribers: tberghammer, danalbert, lldb-commits

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

llvm-svn: 268380
2016-05-03 13:55:53 +00:00
..
API Fix TestGetVariables.py so it works correctly. We had duplicate static values showing up as we would find static variables in the Block and also in the compile unit. We now make sure a variable hasn't been added to the list before we add it. 2016-04-29 21:00:38 +00:00
Breakpoint Add the ability to limit "source regexp" breakpoints to a particular function 2016-04-28 01:40:57 +00:00
Commands Add the ability to limit "source regexp" breakpoints to a particular function 2016-04-28 01:40:57 +00:00
Core Add a read_full_buffer argument to ConnectionFileDescriptor::Read 2016-05-03 13:55:53 +00:00
DataFormatters Add support for synthetic child providers to optionally return a customized typename for display 2016-05-02 00:41:24 +00:00
Expression [fix] Fixed a bug where const this would cause parser errors about $__lldb_expr. 2016-04-29 18:09:03 +00:00
Host Add a read_full_buffer argument to ConnectionFileDescriptor::Read 2016-05-03 13:55:53 +00:00
Initialization Move DynamicLoader plugins to SystemInitializerFull 2016-03-29 15:00:26 +00:00
Interpreter Fix an issue where the apropos command would not print fully qualified command names for nested command objects 2016-05-02 21:28:40 +00:00
Plugins Add a read_full_buffer argument to ConnectionFileDescriptor::Read 2016-05-03 13:55:53 +00:00
Symbol Import block pointers from DWARF as Clang block pointers, not as structs. 2016-05-02 21:15:31 +00:00
Target Add the ability to limit "source regexp" breakpoints to a particular function 2016-04-28 01:40:57 +00:00
Utility Work around a linux libc bug causing a crash in TaskPool 2016-04-15 10:49:07 +00:00
CMakeLists.txt Add initial CMake glue for the NetBSD platform 2015-10-24 00:27:04 +00:00
lldb.cpp Add more NetBSD platform glue for lldb 2015-11-07 15:31:54 +00:00