[all-commits] [llvm/llvm-project] e2f1fe: [lldb/Utility] Introduce UnimplementedError
Pavel Labath via All-commits
all-commits at lists.llvm.org
Mon Oct 12 04:58:09 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e2f1fe361a9c7616a1d6459b036d15f47da4a073
https://github.com/llvm/llvm-project/commit/e2f1fe361a9c7616a1d6459b036d15f47da4a073
Author: Pavel Labath <pavel at labath.sk>
Date: 2020-10-12 (Mon, 12 Oct 2020)
Changed paths:
A lldb/include/lldb/Utility/UnimplementedError.h
M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h
M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
M lldb/source/Utility/CMakeLists.txt
A lldb/source/Utility/UnimplementedError.cpp
M lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationServerTest.cpp
Log Message:
-----------
[lldb/Utility] Introduce UnimplementedError
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).
Differential Revision: https://reviews.llvm.org/D89121
More information about the All-commits
mailing list