llvm-project/lldb
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
..
bindings [lldb/Plugins] Introduce Scripted Interface Factory 2021-09-03 19:37:25 +02:00
cmake [LLVM][CMake][NFC] Resolve FIXME: Rename LLVM_CMAKE_PATH to LLVM_CMAKE_DIR throughout the project 2021-09-16 18:29:57 +02:00
docs [LLDB][Docs] Indicate `PS1` variable by $ 2021-09-04 20:57:59 +05:30
examples [lldb][crashlog] Avoid specifying arch for image when a UUID is present 2021-09-20 10:23:35 -07:00
include/lldb [lldb] Remove IRExecutionUnit::CollectFallbackNames 2021-09-22 11:01:15 -07:00
packages/Python [lldb/test] Start pexpect tests with a custom HOME 2021-09-14 15:17:10 +02:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source [lldb] Handle malformed qfThreadInfo reply 2021-09-23 17:03:47 -05:00
test [lldb] Handle malformed qfThreadInfo reply 2021-09-23 17:03:47 -05:00
third_party/Python/module [LLDB] Change pexpect timeout to 30 to 60 2021-08-02 06:34:11 +05:00
tools [lldb-vscode] Fix focus thread when previous thread exits 2021-09-15 18:09:32 -05:00
unittests [lldb] Fix DomainSocket::GetSocketName for unnamed sockets 2021-09-23 12:30:18 +02:00
utils [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
.clang-format
.clang-tidy [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
.gitignore
CMakeLists.txt [lldb] skip host build for lldb_tblgen with LLDB_TABLEGEN_EXE set 2021-08-13 14:18:03 -07:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py