From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40531 invoked by alias); 24 Feb 2015 16:31:17 -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 40516 invoked by uid 89); 24 Feb 2015 16:31:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pd0-f170.google.com Received: from mail-pd0-f170.google.com (HELO mail-pd0-f170.google.com) (209.85.192.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 24 Feb 2015 16:31:13 +0000 Received: by pdev10 with SMTP id v10so34454816pde.7 for ; Tue, 24 Feb 2015 08:31:11 -0800 (PST) X-Received: by 10.70.94.195 with SMTP id de3mr29769986pdb.59.1424795471596; Tue, 24 Feb 2015 08:31:11 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by mx.google.com with ESMTPSA id oe5sm38636133pbc.33.2015.02.24.08.31.09 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 24 Feb 2015 08:31:10 -0800 (PST) From: Yao Qi To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 5/6] testsuite: Introduce $inferior_spawn_id References: <1424699660-11727-1-git-send-email-palves@redhat.com> <1424699660-11727-6-git-send-email-palves@redhat.com> Date: Tue, 24 Feb 2015 16:31:00 -0000 In-Reply-To: <1424699660-11727-6-git-send-email-palves@redhat.com> (Pedro Alves's message of "Mon, 23 Feb 2015 13:54:19 +0000") Message-ID: <867fv7xodw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00692.txt.bz2 Pedro Alves writes: Hi Pedro, > + # GDBserver doesn't do inferior I/O through GDB. But we can > + # talk to the program using GDBserver's tty instead. > + global inferior_spawn_id > + set inferior_spawn_id $server_spawn_id Does it still work well if GDBserver is started without tty? In my remote testing, gdbserver is started without tty, spawn /usr/bin/ssh -l yao junor1 /gdbserver/aarch64/gdbserver --once :2346 = aarch64-linux-gnu/gdb/testsuite/gdb.base/interrupt I see the following timeouts: Continuing.^M Remote debugging from host 10.2.206.34^M FAIL: gdb.base/interrupt.exp: process is alive (timeout) a^M a^M FAIL: gdb.base/interrupt.exp: child process ate our char (timeout) We need to override ${board}_spawn and pass "-t" to ssh. After this change, all interrupt.exp tests pass. Since the test harness assumes GDBserver has tty, probably we should document such requirement somewhere. However, I don't run the whole testsuite with the updated board file (with -t option to ssh). --=20 Yao (=E9=BD=90=E5=B0=A7)