diff options
| author | Odric Roux-Paris <odricrouxparis@gmail.com> | 2025-10-27 23:51:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-27 22:51:28 +0000 |
| commit | 23cc43d955c3a524eda8a077ec9d8b0d2a24ef61 (patch) | |
| tree | 3dc9c336577c9e6e0062c5e893047a94889abe5f /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
| parent | f8243ce9c73bda19648a7b3b3bfcb584783469da (diff) | |
| download | llvm-23cc43d955c3a524eda8a077ec9d8b0d2a24ef61.zip llvm-23cc43d955c3a524eda8a077ec9d8b0d2a24ef61.tar.gz llvm-23cc43d955c3a524eda8a077ec9d8b0d2a24ef61.tar.bz2 | |
[lldb] print errors when the debug server is not found (#165157)
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index b4422a7..3c4d9a1 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); |
