[all-commits] [llvm/llvm-project] 57be22: [LLDB] Fix parsing of IPv6 host:port inside brackets
Emre Kultursay via All-commits
all-commits at lists.llvm.org
Thu Mar 26 03:36:07 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 57be22fa179703b78b1807217b72eaffa0c518bf
https://github.com/llvm/llvm-project/commit/57be22fa179703b78b1807217b72eaffa0c518bf
Author: Emre Kultursay <emrekultursay at google.com>
Date: 2020-03-26 (Thu, 26 Mar 2020)
Changed paths:
M lldb/source/Utility/UriParser.cpp
M lldb/unittests/Utility/UriParserTest.cpp
Log Message:
-----------
[LLDB] Fix parsing of IPv6 host:port inside brackets
Summary:
When using IPv6 host:port pairs, typically the host is put inside
brackets, such as [2601:1234:...:0213]:5555, and the UriParser
can handle this format.
However, the Android infrastructure in LLDB assumes an additional
brackets around the host:port pair, such that the entire host:port
string can be treated as the host (which is used as an Android Serial
Number), and UriParser cannot handle multiple brackets. Parsing
inputs with such extra backets requires searching the closing bracket
from the right.
Test: BracketedHostnameWithPortIPv6 covers the case mentioned above
Reviewers: #lldb, labath
Reviewed By: labath
Subscribers: kwk, shafik, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D76736
More information about the All-commits
mailing list