[lldb] Add "Trace" stop reason in Scripted Thread
authorMed Ismail Bennani <ismail@bennani.ma>
Sun, 21 May 2023 07:55:50 +0000 (00:55 -0700)
committerMed Ismail Bennani <ismail@bennani.ma>
Mon, 22 May 2023 23:14:00 +0000 (16:14 -0700)
commit8f407b8e632956816e49d1ac0ffd6ff5245252a6
tree67bf20e9204f29ce1dbbf16622e770cd49516591
parentac09a0e192e357a37d183f26f1063d18d6babf72
[lldb] Add "Trace" stop reason in Scripted Thread

This patch adds support to eStopReasonTrace to Scripted Threads.

This is necessary when using a Scrited Process with a Scripted Thread
Plan to report a special thread stop reason to the thread plan.

rdar://109425542

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

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
lldb/source/Plugins/Process/scripted/ScriptedThread.cpp
lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
lldb/test/API/functionalities/scripted_process/dummy_scripted_process.py