[lldb] Have crashlog warn when remapped paths are inaccessible.
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 15 Jun 2023 00:15:28 +0000 (17:15 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 15 Jun 2023 00:15:28 +0000 (17:15 -0700)
commit7371ec76299df6922911233bd6ee07d7629d09b6
treeb74c4cec6d963e3ef40d3ce46fe53934581a1ee1
parent048204d6102ab984c067c1a1c9889edb7f58d419
[lldb] Have crashlog warn when remapped paths are inaccessible.

It can be tricky to troubleshoot why the crashlog script can't show
inline sources. The two most common causes are that we couldn't find the
dSYM or, if we find the dSYM, that the path remapping included in the
dSYMForUUID output isn't accessible. The former is already easy to
diagnose, but the latter is harder because you'd have to manually invoke
dsymForUUID on the UUID and check the remapped path. This patch
automates that process and prints a warning if the remapped path doesn't
exist or is not accessible.

Differential revision: https://reviews.llvm.org/D152886
lldb/examples/python/crashlog.py