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;
|
g_debugserver_file_spec = debugserver_file_spec;
|
||||||
} else {
|
} else {
|
||||||
debugserver_file_spec =
|
if (platform)
|
||||||
platform->LocateExecutable(DEBUGSERVER_BASENAME);
|
debugserver_file_spec =
|
||||||
|
platform->LocateExecutable(DEBUGSERVER_BASENAME);
|
||||||
|
else
|
||||||
|
debugserver_file_spec.Clear();
|
||||||
if (debugserver_file_spec) {
|
if (debugserver_file_spec) {
|
||||||
// Platform::LocateExecutable() wouldn't return a path if it doesn't
|
// Platform::LocateExecutable() wouldn't return a path if it doesn't
|
||||||
// exist
|
// exist
|
||||||
|
|
Loading…
Reference in New Issue