[lldb/Process] Populate queues in Scripted Process
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Thu, 12 Jan 2023 23:27:45 +0000 (15:27 -0800)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 13 Jan 2023 03:20:51 +0000 (19:20 -0800)
commit44b81f621c41ce21b1a1352d9bd7b7e7a8b0179e
treea3352f02c3aaf90465ca5d92e010b76b1dac8f84
parent6b26e1dad9608ec188446dcdc0734a7b41cf145b
[lldb/Process] Populate queues in Scripted Process

This patch enhances queue support in Scripted Processes.

Scripted Threads could already report their queue name if they had one,
but this information was only surfaced when getting the process and
thread status.

However, no queue was create and added to the scripted process queue
list. This patch improves that by creating a queue from the scripted
thread queue name. For now, it uses an invalid queue id, since the
scripted thread doesn't expose this capability yet, but this could
easily be supported if the queue id information is available.

rdar://98844004

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

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/include/lldb/Target/Process.h
lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp
lldb/source/Plugins/Process/scripted/ScriptedProcess.h