[lldb] Avoid confusing reproducer crashes when initialization failed
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 9 Nov 2020 16:47:08 +0000 (08:47 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 9 Nov 2020 16:50:10 +0000 (08:50 -0800)
commitb31d78794998d313efe80472670602d0388fdbfa
treefd136686d4fda97908123d9691ccaa349a7d6873
parentfd3cad7a60168b49f7bc160354655d7605847d41
[lldb] Avoid confusing reproducer crashes when initialization failed

During active replay, the ::Initialize call is replayed like any other
SB API call and the return value is ignored. Since we can't intercept
this, we terminate here before the uninitialized debugger inevitably
crashes.

Differential revision: https://reviews.llvm.org/D90987
lldb/source/API/SystemInitializerFull.cpp