This is an archive of the discontinued LLVM Phabricator instance.

[lldb/Utility] Introduce UnimplementedError
ClosedPublic

Authored by labath on Oct 9 2020, 5:36 AM.

Details

Summary

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).

Diff Detail

Event Timeline

labath created this revision.Oct 9 2020, 5:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 9 2020, 5:36 AM
Herald added a subscriber: mgorny. · View Herald Transcript
labath requested review of this revision.Oct 9 2020, 5:36 AM
DavidSpickett accepted this revision.Oct 9 2020, 6:57 AM
DavidSpickett added a subscriber: DavidSpickett.

I was going to need something like this myself shortly. LGTM.

This revision is now accepted and ready to land.Oct 9 2020, 6:57 AM
JDevlieghere accepted this revision.Oct 9 2020, 9:32 AM
This revision was landed with ongoing or failed builds.Oct 12 2020, 4:58 AM
This revision was automatically updated to reflect the committed changes.