From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7467 invoked by alias); 7 Jan 2002 17:13:43 -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 7419 invoked from network); 7 Jan 2002 17:13:42 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 7 Jan 2002 17:13:42 -0000 Received: by fw-cam.cambridge.arm.com; id RAA11171; Mon, 7 Jan 2002 17:13:41 GMT Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma010522; Mon, 7 Jan 02 17:13:00 GMT Received: from cam-mail2.cambridge.arm.com (localhost [127.0.0.1]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id RAA02954; Mon, 7 Jan 2002 17:12:59 GMT Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id RAA21400; Mon, 7 Jan 2002 17:12:59 GMT Message-Id: <200201071712.RAA21400@cam-mail2.cambridge.arm.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Andrew Cagney cc: Jim Blandy , gdb-patches@sources.redhat.com, Richard.Earnshaw@arm.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: RFA: char is unsigned on some architectures In-reply-to: Your message of "Wed, 19 Dec 2001 22:48:45 GMT." <3C21194D.4090605@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 07 Jan 2002 09:13:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-01/txt/msg00100.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 > And the ARM. R.