From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27854 invoked by alias); 28 Feb 2007 13:47:03 -0000 Received: (qmail 27846 invoked by uid 22791); 28 Feb 2007 13:47:02 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 28 Feb 2007 13:46:53 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HMP8j-0001hM-8D; Wed, 28 Feb 2007 08:46:41 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HMP8i-00030q-Oh; Wed, 28 Feb 2007 08:46:40 -0500 Date: Wed, 28 Feb 2007 14:35:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: eliz@gnu.org, dewar@adacore.com, nickrob@snap.net.nz, jan.kratochvil@redhat.com, Mathieu.Lacage@sophia.inria.fr, gdb@sourceware.org Subject: Re: [RFC] Signed/unsigned character arrays are not strings Message-ID: <20070228134640.GA11261@caradoc.them.org> Mail-Followup-To: Mark Kettenis , eliz@gnu.org, dewar@adacore.com, nickrob@snap.net.nz, jan.kratochvil@redhat.com, Mathieu.Lacage@sophia.inria.fr, gdb@sourceware.org References: <17888.39894.136355.447008@kahikatea.snap.net.nz> <1172390381.2584.18.camel@mathieu> <20070225195350.GA12811@host0.dyn.jankratochvil.net> <20070226004457.GA9926@caradoc.them.org> <17892.4014.160191.285423@kahikatea.snap.net.nz> <45E42969.1030007@adacore.com> <20070227131442.GA20718@caradoc.them.org> <20070227215316.GA26262@caradoc.them.org> <200702272211.l1RMBVvI028239@brahms.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200702272211.l1RMBVvI028239@brahms.sibelius.xs4all.nl> User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2007-02/txt/msg00298.txt.bz2 On Tue, Feb 27, 2007 at 11:11:32PM +0100, Mark Kettenis wrote: > Anyway, I'm in favour of restore the traditional gdb behaviour of > printing all three as strings. While I haven't seen responses to some of my arguments in favor of the new behavior, it's obvious that I'm in the minority here. So, the behavior ought to change. I was concerned about Jim's patch, but thinking about it some more, I would be happy with it (probably with Paul's suggestion). That's because "typedef char *name" is reasonably common, but "typedef char name_unit;" is much less so. What do those who prefer the old behavior think of that? If it's no better, then we're back to what Jan suggested: something which only works for the GDB int8_t and uint8_t types, to fix the display of vector registers. By the way, I was thinking about this last night and wondered if this is hinting at a sensible meaning for "print /s" ... -- Daniel Jacobowitz CodeSourcery