llvm-project/lldb/source
Ted Woodward 953ddded1a [lldb] Handle malformed qfThreadInfo reply
If the remote gdbserver's qfThreadInfo reply has a trailing comma,
GDBRemoteCommunicationClient::GetCurrentProcessAndThreadIDs will return
an empty vector of thread ids. This will cause lldb to recurse through
three functions trying to get the list of threads, until it blows its
stack and crashes.

A trailing comma is a malformed response, but it shouldn't cause lldb to
crash. This patch will return the tids received before the malformed
response.

Reviewed By: clayborg, labath

Differential Revision: https://reviews.llvm.org/D109937
2021-09-23 17:03:47 -05:00
..
API [lldb] Support querying registers via generic names without alt_names 2021-09-13 13:05:06 +02:00
Breakpoint [lldb] Use a struct to pass function search options to Module::FindFunction 2021-08-05 10:18:14 -07:00
Commands [lldb] Show fix-it applied even if expression didn't evaluate succesfully 2021-09-23 16:45:04 -03:00
Core [StopInfoMachException] Summarize arm64e BLRAx/LDRAx auth failures 2021-09-14 13:31:52 -07:00
DataFormatters [nfc] [lldb] Prevent needless copies of DataExtractor 2021-08-04 20:35:53 +02:00
Expression [lldb] Remove IRExecutionUnit::CollectFallbackNames 2021-09-22 11:01:15 -07:00
Host [lldb] Fix DomainSocket::GetSocketName for unnamed sockets 2021-09-23 12:30:18 +02:00
Initialization [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
Interpreter [lldb] [gdb-remote] Add eOpenOptionReadWrite for future gdb compat 2021-08-09 12:06:59 +02:00
Plugins [lldb] Handle malformed qfThreadInfo reply 2021-09-23 17:03:47 -05:00
Symbol [lldb][NFC] Remove outdated FIXME 2021-09-20 11:44:20 -07:00
Target [lldb] Remove two #ifndef linux from Platform.cpp 2021-09-20 08:30:02 +02:00
Utility [lldb] [gdb-remote] Implement the vRun packet 2021-09-10 14:08:36 +02:00
CMakeLists.txt [LLVM][CMake][NFC] Resolve FIXME: Rename LLVM_CMAKE_PATH to LLVM_CMAKE_DIR throughout the project 2021-09-16 18:29:57 +02:00
lldb.cpp [lldb] Reinstate support for LLDB_VERSION_STRING 2021-02-22 16:56:00 -08:00