llvm-project/lldb/examples/python
Med Ismail Bennani d3e0f7e150 [lldb/Plugins] Add support of multiple ScriptedThreads in a ScriptedProcess
This patch adds support of multiple Scripted Threads in a ScriptedProcess.

This is done by fetching the Scripted Threads info dictionary at every
ScriptedProcess::DoUpdateThreadList and iterate over each element to
create a new ScriptedThread using the object instance, if it was not
already available.

This patch also adds the ability to pass a pointer of a script interpreter
object instance to initialize a ScriptedInterface instead of having to call
the script object initializer in the ScriptedInterface constructor.

This is used to instantiate the ScriptedThreadInterface from the
ScriptedThread constructor, to be able to perform call on that script
interpreter object instance.

Finally, the patch also updates the scripted process test to check for
multiple threads.

rdar://84507704

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

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2022-01-24 20:25:53 +01:00
..
scripted_process [lldb/Plugins] Add support of multiple ScriptedThreads in a ScriptedProcess 2022-01-24 20:25:53 +01:00
armv7_cortex_m_target_defintion.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
bsd.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
cmdtemplate.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
crashlog.py [lldb] Add long help to `crashlog` 2022-01-13 11:09:40 -08:00
delta.py [lldb] Use __lldb_init_module instead of "if lldb.debugger" idiom 2022-01-13 16:37:49 -08:00
diagnose_nsstring.py
diagnose_unwind.py [lldb] Use __lldb_init_module instead of "if lldb.debugger" idiom 2022-01-13 16:37:49 -08:00
dict_utils.py
disasm-stress-test.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
disasm.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
disassembly_mode.py
file_extract.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
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] Use __lldb_init_module instead of "if lldb.debugger" idiom 2022-01-13 16:37:49 -08:00
globals.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
in_call_stack.py
jump.py [lldb] Use __lldb_init_module instead of "if lldb.debugger" idiom 2022-01-13 16:37:49 -08:00
lldb_module_utils.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
lldbtk.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
mach_o.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
memory.py [lldb] Use __lldb_init_module instead of "if lldb.debugger" idiom 2022-01-13 16:37:49 -08:00
operating_system.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
performance.py [lldb] [gdb-remote server] Introduce new stop reasons for fork and vfork 2021-04-24 11:08:33 +02:00
process_events.py [lldb] Fix typos. NFC. 2021-05-31 06:48:57 +07:00
pytracer.py
sbvalue.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
scripted_step.py
shadow.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
sources.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
stacks.py [lldb] Use __lldb_init_module instead of "if lldb.debugger" idiom 2022-01-13 16:37:49 -08:00
step_and_print.py
symbolication.py [lldb][crashlog] Avoid specifying arch for image when a UUID is present 2021-09-20 10:23:35 -07:00
types.py [lldb] Use __lldb_init_module instead of "if lldb.debugger" idiom 2022-01-13 16:37:49 -08:00
x86_64_linux_target_definition.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
x86_64_qemu_target_definition.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00
x86_64_target_definition.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00