This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Move PassthroughScriptedProcess to `lldb.scripted_process` module
ClosedPublic

Authored by mib on May 21 2023, 12:57 AM.

Details

Summary

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.

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>

Diff Detail

Event Timeline

mib created this revision.May 21 2023, 12:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2023, 12:57 AM
mib requested review of this revision.May 21 2023, 12:57 AM
bulbazord accepted this revision.May 22 2023, 1:07 PM

Looks like you're mostly moving things around which is fine. The bug that you're fixing is with thread handling in MultiplexerScriptedProcess right? That looks fine to me too.

This revision is now accepted and ready to land.May 22 2023, 1:07 PM
mib added a comment.May 22 2023, 1:13 PM

The bug that you're fixing is with thread handling in MultiplexerScriptedProcess right? That looks fine to me too.

Yep! Thanks!