From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30130 invoked by alias); 15 Dec 2004 14:25:26 -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 29401 invoked from network); 15 Dec 2004 14:24:46 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sourceware.org with SMTP; 15 Dec 2004 14:24:46 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id BE303121F4A8; Wed, 15 Dec 2004 15:24:45 +0100 (CET) To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: Enable hidden option -l References: <41BC878D.2010700@gnu.org> From: Andreas Schwab X-Yow: Is this BOISE?? Date: Wed, 15 Dec 2004 16:42:00 -0000 In-Reply-To: <41BC878D.2010700@gnu.org> (Andrew Cagney's message of "Sun, 12 Dec 2004 13:01:49 -0500") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-12/txt/msg00383.txt.bz2 Andrew Cagney writes: > Can you test this? At least to the point of ensuring that it affects the > corresponding variable. How about this? 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. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."