This is an archive of the discontinued LLVM Phabricator instance.

[lldb/Plugins] Move ScriptedThreadInterface to ScriptedThread
ClosedPublic

Authored by mib on Jan 11 2022, 5:19 PM.

Details

Summary

Since we can have multiple Scripted Threads per Scripted Process, having
only a single ScriptedThreadInterface (with a single object instance)
will cause the method calls to be done on the wrong object.

Instead, this patch creates a separate ScriptedThreadInterface for each
new lldb_private::ScriptedThread to make sure we interact with the right
instance.

rdar://87427911

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>

Diff Detail

Event Timeline

mib requested review of this revision.Jan 11 2022, 5:19 PM
mib created this revision.
JDevlieghere accepted this revision.Jan 12 2022, 11:42 AM

I was slightly confused by the description, but IIUC this moves the interface into the scripted thread instance. LGTM.

This revision is now accepted and ready to land.Jan 12 2022, 11:42 AM
mib updated this revision to Diff 400800.Jan 18 2022, 3:50 AM

Rebase

This revision was landed with ongoing or failed builds.Jan 24 2022, 11:26 AM
This revision was automatically updated to reflect the committed changes.