[lldb/Reproducer] Prevent crash when GDB multi-loader can't be created.
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 11 Mar 2020 06:06:39 +0000 (23:06 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 11 Mar 2020 06:16:55 +0000 (23:16 -0700)
commit4016c6b07f2ade01c65750d1297f72b43f9eb244
treecd933344f8a9978bd58a9c66cf611e87d17d7abe
parent37fa9d65eaa7d8fae7e5b787c4e8ef0a982cead5
[lldb/Reproducer] Prevent crash when GDB multi-loader can't be created.

Check that the multi loader isn't null and print an error otherwise.
This patch also extends the test to cover these error paths.
lldb/source/Commands/CommandObjectReproducer.cpp
lldb/test/Shell/Reproducer/TestDump.test