[lldb] Move PassthroughScriptedProcess to `lldb.scripted_process` module
authorMed Ismail Bennani <ismail@bennani.ma>
Sun, 21 May 2023 07:58:02 +0000 (00:58 -0700)
committerMed Ismail Bennani <ismail@bennani.ma>
Mon, 22 May 2023 23:14:00 +0000 (16:14 -0700)
commit273a2d337f675f3ee050f281b1fecc3e806b9a3c
tree1902d79d8c66d1ba5da4f79ed015095e4c850bf3
parent8f407b8e632956816e49d1ac0ffd6ff5245252a6
[lldb] Move PassthroughScriptedProcess to `lldb.scripted_process` module

This patch moves the `PassthroughScriptedProcess` & `PassthroughScriptedThread`
classes from the `interactive_scripted_process.py` test implementation
to the `lldb.scripted_process` python module.

This class is very versatile so it makes more sense to ship it with the
python module to make it easier for our adopters to derive their class
from it instead of copying it.

During the "migration", I've also noticed some bugs in the
`PassthroughScriptedThread` creation and update, so I also fixed that as
part of this patch.

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

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
lldb/examples/python/scripted_process/scripted_process.py
lldb/test/API/functionalities/interactive_scripted_process/interactive_scripted_process.py