This is an archive of the discontinued LLVM Phabricator instance.

[lldb/crashlog] Parse thread fields and pass it to crashlog scripted process
ClosedPublic

Authored by mib on Mar 24 2022, 12:05 PM.

Details

Summary

Previously, the ScriptedThread used the thread index as the thread id.

This patch parses the crashlog json to extract the actual thread "id" value,
and passes this information to the Crashlog ScriptedProcess blueprint,
to create a higher fidelity ScriptedThreaad.

It also updates the blueprint to show the thread name and thread queue.

Finally, this patch updates the interactive crashlog test to reflect
these changes.

rdar://90327854

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

Diff Detail

Event Timeline

mib created this revision.Mar 24 2022, 12:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 12:05 PM
mib requested review of this revision.Mar 24 2022, 12:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 12:05 PM
mib removed a project: Restricted Project.Mar 24 2022, 12:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 12:06 PM
JDevlieghere accepted this revision.Mar 24 2022, 12:14 PM

LGTM. Thanks!

This revision is now accepted and ready to land.Mar 24 2022, 12:14 PM
mib updated this revision to Diff 418093.Mar 24 2022, 5:21 PM
mib retitled this revision from [lldb/crashlog] Parse more thread fields and pass it to crashlog scripted process to [lldb/crashlog] Parse thread fields and pass it to crashlog scripted process.
mib edited the summary of this revision. (Show Details)

Add thread name to the crashlog scripted process blueprint.