The main change is to avoid setting the process state as running when debugging core/minidumps (details in the bug).
Also included a few small, related fixes around how the errors propagate in this case.
Bug: https://bugs.llvm.org/show_bug.cgi?id=34532
Differential Revision: https://reviews.llvm.org/D37651
Yeah, it looks like an oversight that the error was never checked, so this is good.
Make sure to run git clang-format to fix those little formatting nits (like the missing space after if.