From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 335 invoked by alias); 11 Aug 2005 13:21:43 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 306 invoked by uid 22791); 11 Aug 2005 13:21:37 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 11 Aug 2005 13:21:37 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1E3Czy-0002av-4H; Thu, 11 Aug 2005 09:21:30 -0400 Date: Thu, 11 Aug 2005 13:21:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: gdb-patches@sources.redhat.com, gdb@sources.redhat.com, ramana.radhakrishnan@codito.com Subject: Re: Query regarding expression evaluation. Message-ID: <20050811132129.GA9921@nevyn.them.org> Mail-Followup-To: Andreas Schwab , gdb-patches@sources.redhat.com, gdb@sources.redhat.com, ramana.radhakrishnan@codito.com References: <1123684979.29036.21.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-08/txt/msg00054.txt.bz2 On Thu, Aug 11, 2005 at 12:10:51PM +0200, Andreas Schwab wrote: > Ramana Radhakrishnan writes: > > > Look at PR1978 . The discrepancy is because in valarith.c , GDB takes > > the operation to be unsigned depending only on the operand types. In the > > case described in the PR this seems alright with respect to the C > > standard since the result is implementation dependent. > > Here is a fix: > > 2005-08-11 Andreas Schwab > > PR exp/1978 > * valarith.c (value_binop): Fix result type for the shift > operators. This is OK - thanks! -- Daniel Jacobowitz CodeSourcery, LLC