summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorVadim Chugunov <vadimcn@gmail.com>2017-09-16 03:53:13 +0000
committerVadim Chugunov <vadimcn@gmail.com>2017-09-16 03:53:13 +0000
commit3293b9d42ca2d27a077242f13f1caeebf3dd7be1 (patch)
tree99fac9e6628690fd1ba0af767799691bf59ded92 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parent011aec2cf17f2fca7258d3ab21772873d539111f (diff)
downloadbcm5719-llvm-3293b9d42ca2d27a077242f13f1caeebf3dd7be1.tar.gz
bcm5719-llvm-3293b9d42ca2d27a077242f13f1caeebf3dd7be1.zip
Fix compatibility with OpenOCD debug stub.
OpenOCD sends register classes as two separate <feature> nodes, fixed parser to process both of them. OpenOCD returns "l" in response to "qfThreadInfo", so IsUnsupportedResponse() was false and we were ending up without any threads in the process. I think it's reasonable to assume that there's always at least one thread. llvm-svn: 313442
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index e6fd386b903..c042e9d89cc 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -2624,8 +2624,7 @@ size_t GDBRemoteCommunicationClient::GetCurrentThreadIDs(
* tid.
* Assume pid=tid=1 in such cases.
*/
- if (response.IsUnsupportedResponse() && thread_ids.size() == 0 &&
- IsConnected()) {
+ if (thread_ids.size() == 0 && IsConnected()) {
thread_ids.push_back(1);
}
} else {
OpenPOWER on IntegriCloud