[Lldb-commits] [lldb] [lldb] print errors when the debug server is not found (PR #165157)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Sun Oct 26 10:01:14 PDT 2025


================
@@ -3656,6 +3656,12 @@ Status ProcessGDBRemote::LaunchAndConnectToDebugserver(
 
   FileSpec debugserver_path = GetDebugserverPath(*GetTarget().GetPlatform());
 
+  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.");
----------------
JDevlieghere wrote:

LLVM's coding style [says](https://llvm.org/docs/CodingStandards.html#error-and-warning-messages) that errors and warning should start without capitalization and end without a period (so they can be appended). 

https://github.com/llvm/llvm-project/pull/165157


More information about the lldb-commits mailing list