[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 16 01:51:26 PDT 2024


DavidSpickett wrote:

Only had time to build so far but:
```
/home/davspi01/work/open_source/llvm-project/lldb/tools/lldb-server/lldb-platform.cpp: In function ‘int main_platform(int, char**)’:
/home/davspi01/work/open_source/llvm-project/lldb/tools/lldb-server/lldb-platform.cpp:354:49: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  354 |       if (port_offset < LOW_PORT || port_offset > HIGH_PORT) {
      |                                                 ^
/home/davspi01/work/open_source/llvm-project/lldb/tools/lldb-server/lldb-platform.cpp:372:41: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  372 |       if (portnum < LOW_PORT || portnum > HIGH_PORT) {
      |                                         ^
[2796/2796] Linking CXX executable bin/lldb-server
```
I think this warning was already there, I'm just seeing it now in a clean build. `u` means `unsigned` and `portnum` is `uint16_t`.

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


More information about the lldb-commits mailing list