[lldb/crashlog] Fix JSON ObjectFile module loading issue
authorMed Ismail Bennani <ismail@bennani.ma>
Fri, 28 Apr 2023 19:50:02 +0000 (12:50 -0700)
committerMed Ismail Bennani <ismail@bennani.ma>
Fri, 28 Apr 2023 19:51:01 +0000 (12:51 -0700)
commitdc275fd03254d67d29cc70a5a0569acf24d2280d
tree35194940d12d36b0335054720c67ebe87d1d980d
parent6ebe3949159e18db1022ff2006a9877e3ba92bbf
[lldb/crashlog] Fix JSON ObjectFile module loading issue

In 27f27d15f6c9, we added a new way to use textual (JSON) object files
and symbol files with the interactive crashlog command, using the
inlined symbols from the crash report.

However, there was a missing piece after successfully adding the textual
module to the target, we didn't mark it as available causing the module
loading to exit early.

This patch addresses that issue by marking the module as available when
added successfully to the target.

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

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