From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 860 invoked by alias); 20 Dec 2001 08:44:53 -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 32465 invoked from network); 20 Dec 2001 08:43:34 -0000 Received: from unknown (HELO junk.nocrew.org) (212.73.17.42) by sources.redhat.com with SMTP; 20 Dec 2001 08:43:34 -0000 Received: from lars by junk.nocrew.org with local (Exim 3.31 #1 (Debian)) id 16GynP-0006Cr-00; Thu, 20 Dec 2001 09:43:19 +0100 To: Andrew Cagney Cc: Jim Blandy , gdb-patches@sources.redhat.com Subject: Re: RFA: char is unsigned on some architectures References: <20011219224516.AA8665E9D8@zwingli.cygnus.com> <3C21194D.4090605@cygnus.com> From: Lars Brinkhoff Organization: nocrew Date: Thu, 20 Dec 2001 00:44:00 -0000 In-Reply-To: <3C21194D.4090605@cygnus.com> Message-ID: <85pu5as2mw.fsf@junk.nocrew.org> User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2001-12/txt/msg00498.txt.bz2 Andrew Cagney writes: > > ISO C specifies that `char' acts like either `signed char' or > > `unsigned char'. At the moment, GDB assumes that `char' is `signed > > char'. This patch allows the architecture to specify the correct > > answer, and sets the value correctly for the IBM S/390 architecture. > > 2001-12-19 Jim Blandy > > * gdbarch.sh (TARGET_CHAR_SIGNED): New macro. > > * gdbarch.c, gdbarch.h: Regenerated. > > * gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero, > > set the TYPE_FLAG_UNSIGNED bit on the type. > > * s390-tdep.c (s390_gdbarch_init): On the S/390, characters > > are unsigned by default. > > Hmm, the rs6000 and prodogy (Hmm, IBM ...) are also unsigned. How about ARM? -- Lars Brinkhoff http://lars.nocrew.org/ Linux, GCC, PDP-10 Brinkhoff Consulting http://www.brinkhoff.se/ programming