llvm-project/lldb/examples/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
..
scripted_process [lldb/Plugins] Improve error reporting with reading memory in Scripted Process 2022-11-18 13:56:48 -08:00
armv7_cortex_m_target_defintion.py [lldb] Fixed a number of typos 2022-09-13 10:38:38 -07:00
bsd.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
cmdtemplate.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
crashlog.py [lldb/crashlog] Standardize file path key in the ScriptedProcess Dictionary 2022-11-04 22:05:58 -07:00
delta.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
diagnose_nsstring.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
diagnose_unwind.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
dict_utils.py
disasm-stress-test.py
disasm.py
disassembly_mode.py
file_extract.py
gdb_disassemble.py [lldb] Use __lldb_init_module instead of "if lldb.debugger" idiom 2022-01-13 16:37:49 -08:00
gdbremote.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
globals.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
in_call_stack.py [lldb] Allow flexible importing of in_call_stack 2022-11-11 14:28:40 -08:00
jump.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
lldb_module_utils.py [lldb] Fixed a number of typos 2022-09-13 10:38:38 -07:00
lldbtk.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
mach_o.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
memory.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
operating_system.py
performance.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
process_events.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
pytracer.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
sbvalue.py
scripted_step.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
shadow.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
sources.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
stacks.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
step_and_print.py
symbolication.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
types.py [LLDB] Remove __future__ imports from examples 2022-08-15 09:04:25 +00:00
x86_64_linux_target_definition.py
x86_64_qemu_target_definition.py
x86_64_target_definition.py