From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9988 invoked by alias); 9 Feb 2005 14:54:14 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9644 invoked from network); 9 Feb 2005 14:54:07 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 9 Feb 2005 14:54:07 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j19Es7tK005041 for ; Wed, 9 Feb 2005 09:54:07 -0500 Received: from localhost.redhat.com (vpn50-64.rdu.redhat.com [172.16.50.64]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j19Es6O10256; Wed, 9 Feb 2005 09:54:07 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id EA06D7D79; Wed, 9 Feb 2005 09:53:29 -0500 (EST) Message-ID: <420A23E9.5080007@gnu.org> Date: Wed, 09 Feb 2005 16:49:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: Andreas Schwab Cc: gdb-patches@sources.redhat.com Subject: Re: Enable hidden option -l References: <41BC878D.2010700@gnu.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-02/txt/msg00055.txt.bz2 Andreas Schwab wrote: > Andrew Cagney writes: > > >>Can you test this? At least to the point of ensuring that it affects the >>corresponding variable. > > > How about this? Perfect. I've committed it. thanks, Andrew > 2004-12-15 Andreas Schwab > > * gdb.base/remotetimeout.exp: New file. > > --- /dev/null 2004-10-26 03:06:42.000000000 +0200 > +++ gdb/testsuite/gdb.base/remotetimeout.exp 2004-12-15 15:15:23.995381757 +0100 > @@ -0,0 +1,46 @@ > +# Copyright 2004 Free Software Foundation, Inc. > + > +# This program is free software; you can redistribute it and/or modify > +# it under the terms of the GNU General Public License as published by > +# the Free Software Foundation; either version 2 of the License, or > +# (at your option) any later version. > +# > +# This program is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +# GNU General Public License for more details. > +# > +# You should have received a copy of the GNU General Public License > +# along with this program; if not, write to the Free Software > +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. > + > +# Please email any bugs, comments, and/or additions to this file to: > +# bug-gdb@gnu.org > + > +# This is a test for the gdb invocation option -l. > + > +if $tracelevel then { > + strace $tracelevel > +} > + > + > +global GDBFLAGS > + > +# Skip test if target does not support argument passing. > +if [target_info exists noargs] { > + return; > +} > + > +# > +# Test that -l is processed correctly. > +# > +set old_gdbflags $GDBFLAGS > +set GDBFLAGS "-l 42" > +gdb_exit > +gdb_start > +gdb_test "show remotetimeout" \ > + "Timeout limit to wait for target to respond is 42\." \ > + "correct remotetimeout printed" > + > +set GDBFLAGS $old_gdbflags > + > > Andreas. >