GDBRemoteCommunicationClient::GetFilePermissions() always return 0 on the Windows host because S_IRWXU, S_IRWXG and S_IRWXO are 0.
The problem code is the following
`GDBRemoteCommunicationClient::GetFilePermissions()` always return 0 on the Windows host because S_IRWXU, S_IRWXG and S_IRWXO are 0.
The problem code is the following
```
file_permissions = mode & (S_IRWXU | S_IRWXG | S_IRWXO);
```
Related tests are lldb/test/API/functionalities/gdb_remote_client/TestGDBRemotePlatformFile.py
- test_file_permissions
- test_file_permissions_fallback
These tests must be independent of the host OS.
GDBRemoteCommunicationClient::GetFilePermissions()
always return 0 on the Windows host because S_IRWXU, S_IRWXG and S_IRWXO are 0. The problem code is the followingRelated tests are lldb/test/API/functionalities/gdb_remote_client/TestGDBRemotePlatformFile.py
These tests must be independent of the host OS.