<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63466>63466</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Failure to launch lldb-server gdbserver is not explained by lldb
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
DavidSpickett
</td>
</tr>
</table>
<pre>
As seen in the test for https://reviews.llvm.org/D153513, when lldb-sever platform tries to launch lldb-server gdbserver and fails, the error is not explained to the user in lldb. Originally it wouldn't even report the packet error but with that patch it will but with no extra context.
We should have some mechanism to report that we didn't find lldb-server or that it had moved or permissions had changed etc.
In this case I triggered it by moving lldb-server after I had started the platform.
```
(lldb) run
lldb < 43> send packet: $qLaunchGDBServer;host:<host>;#f0
lldb < 7> read packet: $E09#ae
error: unable to launch a GDB server on '<host>'
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyElEGP6jYQxz-NcxktCnYgySEHWJanlSr18A49T-JJ4taxU3sCy7evHNj3llepRQgcz_g3f__tCcZoBkfUiN1R7E4ZLjz60JzwYvT32XR_EXPWen1rDhEikQPjgEcCpsjQ-wAj8xyFOgh5FvIc6GLoGjfWXqaND4OQ59N2p3ZbJeQrXEdyYK1uXyJdKMBskXsfJuBgKAJ7sLi4bvzMCSlp0O1jhE5Dj8bGxEoiKAQfwERwnoE-ZovGkU6cFF0ihSQ3wTbwezCDcWjtDQzD1S9WOyFLBrqQg0CzD7wumzHt-sFuF4ar4RF4RIYZuRvX5cbanzHngT44IHTeMX3wRuQnkR_uv38QxDFVgxEvBNFPBBN1IzoTpyT1R2lkuBJo89DVG6efjPDhnmQYRtQw-QvpNDlTmEyMxru4BhJ7IA3E3ZOS93RyJkKHkeA9eT4MFEgnYHtLPOOGp4rYMwV4X6mRMXAyN1n0OLdP_D5_fO-PskoQIWsIi7vPpQn4-hHqFaBQQr1BJKcfrgt1ACGLv39br8G30_H7KkSo4-hjigr1eh-9CXUUUvX5f_GhTPxA-Av_La-FVEj3tetJp8jisLX05RoifDsd4dN-B0KWXwTI8pftZ7pRulY1ZtRs91W5y-u8KrOx6eqaeuyKCqtWY78vC72Tba7Ksu7zjigzjcylyvdS5ZXaynJT9e2WVFH1XVVXdaVFkdOExv5orMzEuFCzV8V-n1lsyca1h6W8ey9TN4cmpb-0yxBFkVsT-WdnZmzYUnNGY5dA_9t7_2qy9rZmZkuwzfM7YDA8Lu2m85OQ51Tu8fcyB_8ndSzkeRUfhTyv-v8JAAD__0bNd_U">