ovyalov added a comment.
In http://reviews.llvm.org/D12025#224355, @tberghammer wrote:
The implementation looks good, but I don't like the approach you try to
handle the problem.
I think you do far too much work to use UriParser in a case where it isn't
necessary and isn't make things easier. I think a better (and definitely
simpler) solution would be to change only ConnectionFileDescriptorPosix.cpp
to parse the adb addresses with a locally specified regexp or with looking
for the last colon in the address and split the address to host and port
based on that.
The problem that connection url goes all way down
PlatformAndroid::ConnectRemote-
PlatformAndroidRemoteGDBServer::ConnectRemote-PlatformRemoteGDBServer::ConnectRemote
whiles it reaches ConnectionFileDescriptorPosix::Connect. Within each
ConnectRemote we call UriParser::Parse - either to verify url correctness or
fetch device_id from adb url. In this case we may need to have special handling
for adb protocol inside of UriParser::Parse to pass it through - I'm not very
happy to bring protocol-specific knowledge to this class.
http://reviews.llvm.org/D12025
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits