Before we were returning a SP with an invalid PythonObject, but the calling
code wants an empty shared pointer as an indication of error. Make it so.
Also added a test for this error.
Paths
| Differential D142260
Actually report an error when `command script add` is passed a non-existent class AcceptedPublic Authored by jingham on Jan 20 2023, 3:10 PM.
Details
Summary Before we were returning a SP with an invalid PythonObject, but the calling Also added a test for this error.
Diff Detail
Event TimelineComment Actions Committed as: 9093f3c39b8fa8ef836c627e1db329cd7349e9bb. I forgot to include the "differential revision" line. Comment Actions LGTM modulo the else-after-return.
This revision is now accepted and ready to land.Mar 13 2023, 4:49 PM
Revision Contents
Diff 490984 lldb/source/Commands/CommandObjectCommands.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
lldb/test/API/commands/command/script/TestCommandScript.py
|
No else after return.