[lldb/crashlog] Create artificial frames for non-crashed scripted threads
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Wed, 16 Mar 2022 22:44:31 +0000 (15:44 -0700)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Wed, 16 Mar 2022 22:50:10 +0000 (15:50 -0700)
commit0a65112cf710945fa5cfc0d0be6ff84eba5adb3a
treed348a927a7d7425f7455bafb38d61c4e3f30894c
parent0c4e9fbf410dc8ba81c814dcf262c739909cf4f2
[lldb/crashlog] Create artificial frames for non-crashed scripted threads

This patch pipes down the `-a|--load-all` crashlog command option to the
Scripted Process initializer to load all the images used by crashed
process instead of only loading the images related to the crashed
thread.

This allows us to recreate artificial frames also for the non-crashed
scripted threads.

rdar://90396265

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

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/examples/python/crashlog.py
lldb/examples/python/scripted_process/crashlog_scripted_process.py
lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/multithread-test.cc [new file with mode: 0644]
lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/scripted_crashlog.ips
lldb/test/Shell/ScriptInterpreter/Python/Crashlog/scripted_crashlog_json.test