[Lldb-commits] [PATCH] D134033: [lldb/Plugins] Improve error reporting with reading/writing memory in a Scripted Process (WIP)
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 16 06:06:00 PDT 2022
mib created this revision.
mib added reviewers: labath, JDevlieghere.
mib added a project: LLDB.
Herald added a project: All.
mib requested review of this revision.
Herald added a subscriber: lldb-commits.
This patch should improve error reporting by passing the status object from the Scripted Process plugin down to the python interface, by converting it to a SBError (wrapped into a PyObject).
This way, the Scripted Process python implementation can report back errors when reading or writing memory to lldb.
This will also be used when initializing the ScriptedProcess python object.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134033
Files:
lldb/bindings/python/python-swigsafecast.swig
lldb/examples/python/scripted_process/scripted_process.py
lldb/include/lldb/API/SBError.h
lldb/include/lldb/Interpreter/ScriptedProcessInterface.h
lldb/include/lldb/lldb-forward.h
lldb/source/API/SBError.cpp
lldb/source/Interpreter/ScriptInterpreter.cpp
lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp
lldb/source/Plugins/Process/scripted/ScriptedProcess.h
lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp
lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h
lldb/test/API/functionalities/scripted_process_passthru/scripted_process_passthru.py
lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134033.460711.patch
Type: text/x-patch
Size: 22076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220916/7bef70b9/attachment-0001.bin>
More information about the lldb-commits
mailing list