[Lldb-commits] [lldb] r354012 - [gdb-remote] Sanity check platform pointer
Aaron Smith via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 14 00:59:05 PST 2019
Author: asmith
Date: Thu Feb 14 00:59:04 2019
New Revision: 354012
URL: http://llvm.org/viewvc/llvm-project?rev=354012&view=rev
Log:
[gdb-remote] Sanity check platform pointer
Modified:
lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp?rev=354012&r1=354011&r2=354012&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp Thu Feb 14 00:59:04 2019
@@ -979,8 +979,11 @@ Status GDBRemoteCommunication::StartDebu
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
More information about the lldb-commits
mailing list