forked from OSchip/llvm-project
[gdb-remote] Sanity check platform pointer
llvm-svn: 354012
This commit is contained in:
parent
91c4fa9d32
commit
bc47289511
|
@ -979,8 +979,11 @@ Status GDBRemoteCommunication::StartDebugserverProcess(
|
|||
|
||||
g_debugserver_file_spec = debugserver_file_spec;
|
||||
} else {
|
||||
debugserver_file_spec =
|
||||
platform->LocateExecutable(DEBUGSERVER_BASENAME);
|
||||
if (platform)
|
||||
debugserver_file_spec =
|
||||
platform->LocateExecutable(DEBUGSERVER_BASENAME);
|
||||
else
|
||||
debugserver_file_spec.Clear();
|
||||
if (debugserver_file_spec) {
|
||||
// Platform::LocateExecutable() wouldn't return a path if it doesn't
|
||||
// exist
|
||||
|
|
Loading…
Reference in New Issue