[Lldb-commits] [PATCH] D89121: [lldb/Utility] Introduce UnimplementedError
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 9 05:36:03 PDT 2020
labath created this revision.
labath added a reviewer: JDevlieghere.
Herald added a subscriber: mgorny.
Herald added a project: LLDB.
labath requested review of this revision.
This is essentially a replacement for the PacketUnimplementedError
previously present in the gdb-remote server code.
The reason I am introducing a generic error is because I wanted the
native process classes to be able to signal that they do not support
some functionality. They could not use PacketUnimplementedError as they
are independent of a specific transport protocol. Putting the error
class in the the native process code was also not ideal because the
gdb-remote code is also used for lldb-server's platform mode, which does
not (should not) know how to debug individual processes.
I'm putting it under Utility, as I think it can be generally useful for
notifying about unsupported/unimplemented functionality (and in
particular, for programatically testing whether something is
unsupported).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89121
Files:
lldb/include/lldb/Utility/UnimplementedError.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/source/Utility/CMakeLists.txt
lldb/source/Utility/UnimplementedError.cpp
lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationServerTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89121.297209.patch
Type: text/x-patch
Size: 7706 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201009/18e0aad4/attachment-0001.bin>
More information about the lldb-commits
mailing list