From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21694 invoked by alias); 19 Dec 2001 22:48:48 -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 21673 invoked from network); 19 Dec 2001 22:48:47 -0000 Received: from unknown (HELO localhost.cygnus.com) (195.224.55.237) by sources.redhat.com with SMTP; 19 Dec 2001 22:48:47 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 5BCFB3C84; Wed, 19 Dec 2001 22:48:45 +0000 (GMT) Message-ID: <3C21194D.4090605@cygnus.com> Date: Wed, 19 Dec 2001 14:48:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.6) Gecko/20011207 X-Accept-Language: en-us MIME-Version: 1.0 To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: char is unsigned on some architectures References: <20011219224516.AA8665E9D8@zwingli.cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00488.txt.bz2 > 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. Want to add that ``obvious'' tweek? Andrew