Index: test/tools/lldb-server/gdbremote_testcase.py =================================================================== --- test/tools/lldb-server/gdbremote_testcase.py +++ test/tools/lldb-server/gdbremote_testcase.py @@ -61,7 +61,8 @@ self.named_pipe_fd = None self.stub_sends_two_stop_notifications_on_kill = False if lldb.platform_url: - self.stub_hostname = re.match(".*://(.*):[0-9]+", lldb.platform_url).group(1) + scheme, host = re.match('(.+)://(.+):\d+', lldb.platform_url).groups() + self.stub_hostname = 'localhost' if scheme == 'adb' else host else: self.stub_hostname = "localhost"