From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4459 invoked by alias); 6 Dec 2001 23:41:48 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4372 invoked from network); 6 Dec 2001 23:41:43 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 6 Dec 2001 23:41:43 -0000 Received: from creche.cygnus.com (ta0192.peakpeak.com [204.144.244.192] (may be forged)) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id QAA05208; Thu, 6 Dec 2001 16:41:40 -0700 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id QAA04885; Thu, 6 Dec 2001 16:45:57 -0700 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: Handling of structure dereferencing References: <20011206120739.A1490@nevyn.them.org> X-Zippy: A GRAM?? A BRAM... A GROOM... A BROOM... Oh, Yeh!! Wash the ROOM!! X-Attribution: Tom Reply-To: tromey@redhat.com From: Tom Tromey Date: Thu, 06 Dec 2001 15:41:00 -0000 In-Reply-To: Daniel Jacobowitz's message of "Thu, 6 Dec 2001 12:07:39 -0500" Message-ID: <87k7vzap57.fsf@creche.redhat.com> X-Mailer: Gnus v5.7/Emacs 20.5 X-SW-Source: 2001-12/txt/msg00070.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: Daniel> Right now, and historically, gdb has accepted things like: Daniel> struct foo {char a} *b, **c, ***d; Daniel> (gdb) print b.a Daniel> So, straw poll: how would people feel about: Daniel> - not letting this happen; only explicit dereferencing I use `p PTR.field' instead of `p PTR->field' all the time in gdb. I'd prefer to keep it if possible. However, I do notice that I only use this in the `b' case. I don't recall ever using it when there is more than one level of indirection involved. Tom