[Lldb-commits] [PATCH] D91801: [lldb] Fix incorrect error handling in GDBRemoteCommunicationClient::SendGetSupportedTraceType
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 19 10:14:37 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG47b7138b484b: [lldb] Fix incorrect error handling in GDBRemoteCommunicationClient… (authored by teemperor).
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91801/new/
https://reviews.llvm.org/D91801
Files:
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
Index: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
===================================================================
--- lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -3465,8 +3465,11 @@
if (SendPacketAndWaitForResponse(escaped_packet.GetString(), response,
true) ==
GDBRemoteCommunication::PacketResult::Success) {
- if (!response.IsNormalResponse())
+ if (response.IsErrorResponse())
return response.GetStatus().ToError();
+ if (response.IsUnsupportedResponse())
+ return llvm::createStringError(llvm::inconvertibleErrorCode(),
+ "jLLDBTraceSupportedType is unsupported");
if (llvm::Expected<TraceTypeInfo> type =
llvm::json::parse<TraceTypeInfo>(response.Peek()))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91801.306456.patch
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201119/592f895d/attachment-0001.bin>
More information about the lldb-commits
mailing list