There is no guarantees that dynamically allocated device port will be free on host side - make remote-android platform to use dynamic local tcp ports when forwarding device ports.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lgtm
source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp | ||
---|---|---|
166 | It might be good to add a comment explaining why is this code in a loop (= to retry, if someone manages to snatch the port from under us), as I don't think it will be obvious when someone finds this in the future. |
Comment Actions
Files:
/lldb/trunk/source/Plugins/Platform/Android/AdbClient.cpp /lldb/trunk/source/Plugins/Platform/Android/AdbClient.h /lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp /lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h /lldb/trunk/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp /lldb/trunk/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h
Users:
ovyalov (Author)
It might be good to add a comment explaining why is this code in a loop (= to retry, if someone manages to snatch the port from under us), as I don't think it will be obvious when someone finds this in the future.