diff options
author | Tamas Berghammer <tberghammer@google.com> | 2017-09-18 10:24:48 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2017-09-18 10:24:48 +0000 |
commit | 1492cb89cabd1c984c9f0940b406acf59f56d705 (patch) | |
tree | f081bc272f4be83ae945eb91508e6bf2df8f2b1c /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | 84af99b3b1ce5b5ed0c72b3ec4446c61d99d6662 (diff) | |
download | bcm5719-llvm-1492cb89cabd1c984c9f0940b406acf59f56d705.tar.gz bcm5719-llvm-1492cb89cabd1c984c9f0940b406acf59f56d705.zip |
Fix Linux remote debugging after r313442
On Linux lldb-server sends an OK response to qfThreadInfo if no process
is started yet. I don't know why would LLDB issue a qfThreadInfo packet
before starting a process but creating a fake thread ID in case of an
OK or Error respoinse sounds bad anyway so lets not do it.
llvm-svn: 313525
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index c042e9d89cc..a841fc6f074 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -2624,7 +2624,8 @@ size_t GDBRemoteCommunicationClient::GetCurrentThreadIDs( * tid. * Assume pid=tid=1 in such cases. */ - if (thread_ids.size() == 0 && IsConnected()) { + if ((response.IsUnsupportedResponse() || response.IsNormalResponse()) && + thread_ids.size() == 0 && IsConnected()) { thread_ids.push_back(1); } } else { |