You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Docs] Describe gdbserver lookup issue and a workaround
LLDB uses `dladdr` function to discover the path to liblldb and looks there for lldb-server. However, sometimes this function returns the path to the executable that loaded this dll - lldb-mi executable in this case (see section BUGS of [the function's man](https://man7.org/linux/man-pages/man3/dladdr.3.html)).
On some architectures (e. g. Linux, x86-64), LLDB dinamic library fails to determine its location. That results to inability of locating a gdbserver stub:
69
+
```bash
70
+
process launch failed: unable to locate lldb-server
71
+
```
72
+
73
+
The workaraund is to set LLDB_DEBUGSERVER_PATH environment variable before running LLDB-MI.
0 commit comments