From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8841 invoked by alias); 9 Feb 2012 20:16:55 -0000 Received: (qmail 8830 invoked by uid 22791); 9 Feb 2012 20:16:52 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Feb 2012 20:16:40 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q19KGZXm006669 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Feb 2012 15:16:35 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q19KGXnG023725; Thu, 9 Feb 2012 15:16:34 -0500 Message-ID: <4F3429A1.8040002@redhat.com> Date: Thu, 09 Feb 2012 20:16:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: Yao Qi CC: gdb-patches@sourceware.org Subject: Re: [patch 8/8] Control agent in testsuite References: <4F1D55D7.7030506@codesourcery.com> <4F1D6EB4.2030205@codesourcery.com> In-Reply-To: <4F1D6EB4.2030205@codesourcery.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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-02/txt/msg00163.txt.bz2 On 01/23/2012 02:29 PM, Yao Qi wrote: > After using agent, we need to run testsuite in two cases, agent is on > and off. This patch is to add such logic in testsuite, so that we can > control this through board file. If we add the following line in board > file, > > set_board_info use_agent "on" > > the agent is always turned on for remote testing. We need also to turn > agent on in native debugging, but I'll postpone it when gdb starts to > use agent. This is a bit ugly, and I'm not seeing much point as is. You can just put set GDBFLAGS "-ex \"set agent on\"" in your board file? -- Pedro Alves