[Lldb-commits] [lldb] 23cc43d - [lldb] print errors when the debug server is not found (#165157)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 27 15:51:32 PDT 2025
Author: Odric Roux-Paris
Date: 2025-10-27T22:51:28Z
New Revision: 23cc43d955c3a524eda8a077ec9d8b0d2a24ef61
URL: https://github.com/llvm/llvm-project/commit/23cc43d955c3a524eda8a077ec9d8b0d2a24ef61
DIFF: https://github.com/llvm/llvm-project/commit/23cc43d955c3a524eda8a077ec9d8b0d2a24ef61.diff
LOG: [lldb] print errors when the debug server is not found (#165157)
Added:
Modified:
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index b4422a7d58077..3c4d9a1f1ad37 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -3672,6 +3672,12 @@ Status ProcessGDBRemote::LaunchAndConnectToDebugserver(
}
}
#endif
+
+ if (!FileSystem::Instance().Exists(debugserver_path))
+ return Status::FromErrorString("could not find '" DEBUGSERVER_BASENAME
+ "'. Please ensure it is properly installed "
+ "and available in your PATH");
+
debugserver_launch_info.SetExecutableFile(debugserver_path,
/*add_exe_file_as_first_arg=*/true);
More information about the lldb-commits
mailing list