From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4988 invoked by alias); 11 Sep 2012 22:07:18 -0000 Received: (qmail 4978 invoked by uid 22791); 11 Sep 2012 22:07:17 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from elasmtp-scoter.atl.sa.earthlink.net (HELO elasmtp-scoter.atl.sa.earthlink.net) (209.86.89.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Sep 2012 22:07:04 +0000 Received: from [68.96.200.16] (helo=macbook2.local) by elasmtp-scoter.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1TBYbn-0002Af-VE for gdb-patches@sourceware.org; Tue, 11 Sep 2012 18:07:04 -0400 Message-ID: <504FB607.1000507@earthlink.net> Date: Tue, 11 Sep 2012 22:07:00 -0000 From: Stan Shebs User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [rfc] display vector types using vector_size syntax References: <50448CC0.8060706@broadcom.com> <87627lerap.fsf@fleche.redhat.com> <20120910220620.GA3081@adacore.com> <504EFFE4.1090007@broadcom.com> In-Reply-To: <504EFFE4.1090007@broadcom.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: ae6f8838ff913eba0cc1426638a40ef67e972de0d01da940999d700bfd0cb5922192efd76577b0c1350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes 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-09/txt/msg00186.txt.bz2 On 9/11/12 2:09 AM, Andrew Burgess wrote: > On 10/09/2012 11:06 PM, Joel Brobecker wrote: >>> Andrew> I'd like to change the behaviour to this: >>> Andrew> (gdb) ptype vector >>> Andrew> type = char ((vector_size(4))) >>> Andrew> (gdb) whatis vector >>> Andrew> type = char ((vector_size(4))) >>> >>> Seems reasonable to me. >> >> Just a thought: How about >> >> type = char __attribute__ ((vector_size(4))) >> >> ? >> >> It know it's a lot more verbose, but the later speaks a lot more >> to me than the original proposal... > > I only dropped this to avoid clutter, but I don't really mind either way. > > I'll give it a couple more days for people to reply, then commit a > version with "__attibute__". I vote for __attribute__ too. Although more cluttered, it immediately says "GCC extensions are hanging about" while the vector_size by itself looks like it could be one of the app's symbols that somehow found its way into the type (and users will no doubt assume that it's a GDB bug :-) ). Stan stan@codesourcery.com