From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6131 invoked by alias); 5 Apr 2008 16:45:31 -0000 Received: (qmail 6123 invoked by uid 22791); 5 Apr 2008 16:45:31 -0000 X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 05 Apr 2008 16:45:08 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 5DC1F45034; Sat, 5 Apr 2008 18:45:05 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: gdb@sources.redhat.com Subject: Re: Strangeness in set command References: X-Yow: ONE: I will donate my entire ``BABY HUEY'' comic book collection to the downtown PLASMA CENTER.. TWO: I won't START a BAND called ``KHADAFY & THE HIT SQUAD''.. THREE: I won't ever TUMBLE DRY my FOX TERRIER again!! Date: Sat, 05 Apr 2008 16:56:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Sat\, 05 Apr 2008 19\:11\:14 +0300") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00050.txt.bz2 Eli Zaretskii writes: > Assuming that `s' is a variable of type `struct stat', this command > fails: > > (gdb) set s.st_mode=0x1ff > Ambiguous set command "s.st_mode=0x1ff" > > But this succeeds: > > (gdb) set (&s)->st_mode=0x1ff > > How come we are smart enough to support the latter, but not the > former? Because there are several set commands beginning with s. Use set variable to avoid the ambiguity. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."