llvm-project/lldb/source/Plugins/ScriptInterpreter/Python
Med Ismail Bennani 7e01924e4e [lldb/Plugins] Improve error reporting with reading memory in Scripted Process
This patch improves the ScriptedPythonInterface::Dispatch method to
support passing lldb_private types to the python implementation.

This will allow, for instance, the Scripted Process python implementation
to report errors when reading memory back to lldb.

To do so, the Dispatch method will transform the private types in the
parameter pack into `PythonObject`s to be able to pass them down to the
python methods.

Then, if the call succeeded, the transformed arguments will be converted
back to their original type and re-assigned in the parameter pack, to
ensure pointers and references behaviours are preserved.

This patch also updates various scripted process python class and tests
to reflect this change.

rdar://100030995

Differential Revision: https://reviews.llvm.org/D134033

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2022-11-18 13:56:48 -08:00
..
CMakeLists.txt [llvm][lldb] use FindLibEdit.cmake everywhere 2022-05-12 15:59:41 -07:00
PythonDataObjects.cpp [lldb] Use nullptr instead of NULL (NFC) 2022-08-27 21:21:07 -07:00
PythonDataObjects.h [lldb/Python] Make use of PythonObject and PythonFormat in callbacks (NFC) 2022-11-18 13:56:48 -08:00
PythonReadline.cpp [lldb] Use nullptr instead of NULL (NFC) 2022-08-27 21:21:07 -07:00
PythonReadline.h
SWIGPythonBridge.cpp [lldb/Interpreter] Add ScriptInterpreter Wrapper for ScriptedProcess 2021-03-23 18:24:47 +01:00
SWIGPythonBridge.h [lldb/Plugins] Improve error reporting with reading memory in Scripted Process 2022-11-18 13:56:48 -08:00
ScriptInterpreterPython.cpp [lldb/Python] Make use of PythonObject and PythonFormat in callbacks (NFC) 2022-11-18 13:56:48 -08:00
ScriptInterpreterPython.h [lldb] Clarify StructuredDataImpl ownership 2021-12-13 21:04:51 +01:00
ScriptInterpreterPythonImpl.h [lldb] Add matching based on Python callbacks for data formatters. 2022-10-19 12:53:38 -07:00
ScriptedProcessPythonInterface.cpp [lldb/Plugins] Improve error reporting with reading memory in Scripted Process 2022-11-18 13:56:48 -08:00
ScriptedProcessPythonInterface.h [lldb/crashlog] Add support for Application Specific Backtraces & Information 2022-11-03 14:44:53 -07:00
ScriptedPythonInterface.cpp [lldb/Plugins] Improve error reporting with reading memory in Scripted Process 2022-11-18 13:56:48 -08:00
ScriptedPythonInterface.h [lldb/Plugins] Improve error reporting with reading memory in Scripted Process 2022-11-18 13:56:48 -08:00
ScriptedThreadPythonInterface.cpp [lldb/crashlog] Add support for Application Specific Backtraces & Information 2022-11-03 14:44:53 -07:00
ScriptedThreadPythonInterface.h [lldb/crashlog] Add support for Application Specific Backtraces & Information 2022-11-03 14:44:53 -07:00
lldb-python.h Work around a module build failure on the bots. 2022-01-20 13:39:48 -08:00