llvm-project/lldb/examples
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
..
customization [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
darwin/heap_find [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
functions
interposing/darwin/fd_interposing
lookup
plugins/commands
python [lldb/Plugins] Improve error reporting with reading memory in Scripted Process 2022-11-18 13:56:48 -08:00
scripting [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
summaries [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
synthetic [lldb] Make callback-based formatter matching available from the CLI. 2022-11-10 10:29:38 -08:00
test [lldb] Remove LLDB session dir and just store test traces in the respective test build directory 2020-12-04 11:43:10 +01:00