From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2219 invoked by alias); 22 Jun 2012 07:49:49 -0000 Received: (qmail 2208 invoked by uid 22791); 22 Jun 2012 07:49:47 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jun 2012 07:49:34 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1ShycV-0005dm-UT from Yao_Qi@mentor.com ; Fri, 22 Jun 2012 00:49:31 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 22 Jun 2012 00:49:31 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Fri, 22 Jun 2012 00:49:30 -0700 From: Yao Qi To: CC: Pedro Alves Subject: Re: [PATCH] [testsuite] Fix in board_file native-gdbserver.exp Date: Fri, 22 Jun 2012 07:49:00 -0000 Message-ID: <5343705.85RU0XsB2d@qiyao.dyndns.org> User-Agent: KMail/4.8.3 (Linux/3.3.7-1.fc16.i686; KDE/4.8.3; i686; ; ) In-Reply-To: <4FE32949.9040109@redhat.com> References: <1340265300-4881-1-git-send-email-yao@codesourcery.com> <4FE32949.9040109@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-IsSubscribed: yes 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 X-SW-Source: 2012-06/txt/msg00680.txt.bz2 On Thursday, June 21, 2012 03:01:45 PM Pedro Alves wrote: > I think native-stdio-gdbserver.exp does have the same problem, though? >=20 Yes, I can reproduce the same problem on board file native-stdio- gdbserver.exp. I copy the same stuff into native-stdio-gdbserver.exp, and = run=20 testsuite against it, no change on test result. > > gdb/testsuite: > >=20 > > > > 2012-06-21 Yao Qi > > > >=20 > > > > * boards/native-gdbserver.exp: New proc ${board}_exec. >=20 > Okay, thanks. Here is what I committed. --=20 Yao (=E9=BD=90=E5=B0=A7) gdb/testsuite: 2012-06-22 Yao Qi * boards/native-gdbserver.exp: New proc ${board}_exec. * boards/native-stdio-gdbserver.exp: Likewise. --- gdb/testsuite/boards/native-gdbserver.exp | 12 ++++++++++++ gdb/testsuite/boards/native-stdio-gdbserver.exp | 12 ++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/gdb/testsuite/boards/native-gdbserver.exp=20 b/gdb/testsuite/boards/native-gdbserver.exp index 5fa02a4..89702df 100644 --- a/gdb/testsuite/boards/native-gdbserver.exp +++ b/gdb/testsuite/boards/native-gdbserver.exp @@ -64,6 +64,18 @@ proc ${board}_spawn { board cmd } { return $result } =20 +proc ${board}_exec { hostname program args } { + global board_info + + set baseboard [lindex [split $hostname "/"] 0] + + set board_info($baseboard,isremote) 0 + set result [remote_exec $hostname $program $args] + set board_info($baseboard,isremote) 1 + + return $result +} + proc ${board}_download { board host dest } { return $host } diff --git a/gdb/testsuite/boards/native-stdio-gdbserver.exp=20 b/gdb/testsuite/boards/native-stdio-gdbserver.exp index 703f370..9804289 100644 --- a/gdb/testsuite/boards/native-stdio-gdbserver.exp +++ b/gdb/testsuite/boards/native-stdio-gdbserver.exp @@ -126,6 +126,18 @@ proc ${board}_spawn { board cmd } { return $result } =20 +proc ${board}_exec { hostname program args } { + global board_info + + set baseboard [lindex [split $hostname "/"] 0] + + set board_info($baseboard,isremote) 0 + set result [remote_exec $hostname $program $args] + set board_info($baseboard,isremote) 1 + + return $result +} + proc ${board}_download { board host dest } { return $host } --=20 1.7.7.6