[lldb-vscode] Report an error if an invalid program is specified.
authorZachary Turner <zturner@google.com>
Fri, 8 Mar 2019 00:11:27 +0000 (00:11 +0000)
committerZachary Turner <zturner@google.com>
Fri, 8 Mar 2019 00:11:27 +0000 (00:11 +0000)
commit7e89b3cc17e71ab515c2b14a1d2a7229128871d0
tree9f43c06d8f807b6b5fdb9ae7c29882b3a5843d74
parent5ed14ef1e461c1378c3835c4d57ef9d998b5044f
[lldb-vscode] Report an error if an invalid program is specified.

Previously if an invalid program was specified, there was a bug
which, when we attempted to launch the program, would report that
the operation succeeded, causing LLDB to then hang while waiting
indefinitely to receive some events from the process.

After this patch, when an invalid program is specified, we immediately
return to vs code with an error message that indicates that the
program can not be found.

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

llvm-svn: 355656
lldb/source/Target/Process.cpp
lldb/tools/lldb-vscode/lldb-vscode.cpp