<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/119201>119201</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Remote debugging error, target OS FreeBSD
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
haozia816
</td>
</tr>
</table>
<pre>
OS: Local: ubuntu-20.04, Remote: FreeBSD-14.1
LLVM version: 19.1.5
Compiler: gcc-9.4.0, Compiled by myself
Debuggee: x86_64-unknown-freebsd13
```
/root/untitled1/build/untitled1: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 13.1, FreeBSD-style, with debug_info, not stripped
```
Operation Logs:
```
root@vc:~# file "/root/untitled1/build/untitled1"
/root/untitled1/build/untitled1: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), statically linked, for FreeBSD 13.1, FreeBSD-style, with debug_info, not stripped
root@vc:~# /usr/lib/llvm-19/bin/lldb
(lldb) platform select remote-freebsd
Platform: remote-freebsd
Connected: no
(lldb) platform connect connect://192.168.88.102:10000
Platform: remote-freebsd
Triple: x86_64-unknown-freebsd13
OS Version: 14.1 (00199506)
Hostname: (null)
Connected: yes
WorkingDir: /root
Kernel: FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC
(lldb) log enable lldb platform
(lldb) file "/root/untitled1/build/untitled1"
lldb PlatformRemoteGDBServer::GetModuleSpec - failed to get module info for /root/untitled1/build/untitled1:x86_64--freebsd13.1
Current executable set to '/root/untitled1/build/untitled1' (x86_64).
(lldb) run
lldb target 0x000055D5A87221F0
error: unable to launch a GDB server on '(null)'
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzcVU1v4zYQ_TX0ZSCBpD4sHXRQ_JEW9TZFXGyPC32MZDY0aZBUEvfQ316QsrPxLooGPS5g2PIMMZz35s1TY60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