[lldb/crashlog] Remove tempfile prefix from inlined symbol object file
authorMed Ismail Bennani <ismail@bennani.ma>
Mon, 22 May 2023 22:51:43 +0000 (15:51 -0700)
committerMed Ismail Bennani <ismail@bennani.ma>
Mon, 22 May 2023 23:14:00 +0000 (16:14 -0700)
commitabba5de724665362db707d4cfab598cfbf5a475e
tree293da7b5b91e3a339b5b984860e34bbd0b362097
parent273a2d337f675f3ee050f281b1fecc3e806b9a3c
[lldb/crashlog] Remove tempfile prefix from inlined symbol object file

This patch changes the way we generate the ObjectFileJSON files
containing the inlined symbols from the crash report to remove the
tempfile prefix from the object file name.

To do so, instead of creating a new tempfile for each module, we create a
temporary directory that contains each module object file with the same
name as the module.

This makes the backtraces only contain the module name without the
temfile prefix which makes it look like a regular stackframe.

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

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
lldb/examples/python/crashlog.py
lldb/examples/python/scripted_process/crashlog_scripted_process.py
lldb/examples/python/symbolication.py