[Lldb-commits] [lldb] [lldb] Have lldb-server assign ports to children in platform mode (PR #88845)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Sat Jul 13 00:40:43 PDT 2024


slydiman wrote:

Here is the log of lldb-server processes (parent and child) on remote Linux
```
/home/ubuntu/lldb-server p --log-channels lldb all --listen *:1234 --server --min-gdbserver-port 1236 --max-gdbserver-port 1240
/home/ubuntu/lldb-server gdbserver tcp://[10.1.1.170]:0 --native-regs --pipe 6
```
Note the port `0` in the url  `tcp://[10.1.1.170]:0` is a bug now. but any port in this url will be ignored.

I don't see where `--min-gdbserver-port`, `--max-gdbserver-port` and `--gdbserver-port` values are really used. Do we still need them?
`--port-offset` is not used too.

Probably it is better to revert #88845 since the port mapping does not work as expected anyway. But #88845 caused test failures on cross builds.

See https://github.com/llvm/llvm-project/issues/97537#issuecomment-2226588550 for more details.

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


More information about the lldb-commits mailing list