From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20820 invoked by alias); 24 Apr 2015 19:39:06 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 20804 invoked by uid 89); 24 Apr 2015 19:39:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 24 Apr 2015 19:39:04 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t3OJd2jh016872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Apr 2015 15:39:02 -0400 Received: from localhost (unused-10-15-17-126.yyz.redhat.com [10.15.17.126]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3OJd12X022112 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA256 bits=256 verify=NO); Fri, 24 Apr 2015 15:39:02 -0400 From: Sergio Durigan Junior To: Yao Qi Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] A new board file remote-gdbserver-on-localhost.exp References: <1429796515-26821-1-git-send-email-qiyaoltc@gmail.com> X-URL: http://blog.sergiodj.net Date: Fri, 24 Apr 2015 19:39:00 -0000 In-Reply-To: <1429796515-26821-1-git-send-email-qiyaoltc@gmail.com> (Yao Qi's message of "Thu, 23 Apr 2015 14:41:55 +0100") Message-ID: <87zj5xco4s.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00948.txt.bz2 On Thursday, April 23 2015, Yao Qi wrote: > From: Yao Qi > > This patch is to add a new board file that does real remote gdbserver > testing on localhost. This board file can be used to reproduce PR 18208. Thanks for this, Yao. While using your board file to try to reproduce the failure, I found that it can stale on: (gdb) spawn /usr/bin/ssh -l user localhost /path/to/gdb/build-original/gdb/testsuite/../gdbserver/gdbserver --once :2346 /path/to/gdb/build-original/gdb/testsuite/gdb.base/coredump-filter The authenticity of host 'localhost (::1)' can't be established. ECDSA key fingerprint is xx:xx:xx:xx:xx:xx. Are you sure you want to continue connecting (yes/no)? got a INT signal, interrupted by user It also can stale if the user needs to provide a password to log into the system (which normally is the case). BTW, how do you use the board in this case? *And* it also assumes that the user will have a sshd running on localhost, which is not always the case, right? So maybe the board could check for those cases and act accordingly, or at least the introductory comments on the board file could be extended to mention those situations. Cheers, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/