This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Query regarding expression evaluation.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gdb-patches at sources dot redhat dot com, gdb at sources dot redhat dot com,ramana dot radhakrishnan at codito dot com
- Date: Thu, 11 Aug 2005 09:21:30 -0400
- Subject: Re: Query regarding expression evaluation.
- References: <1123684979.29036.21.camel@localhost.localdomain> <jehddwzsus.fsf@sykes.suse.de>
On Thu, Aug 11, 2005 at 12:10:51PM +0200, Andreas Schwab wrote:
> Ramana Radhakrishnan <ramana.radhakrishnan@codito.com> 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 <schwab@suse.de>
>
> PR exp/1978
> * valarith.c (value_binop): Fix result type for the shift
> operators.
This is OK - thanks!
--
Daniel Jacobowitz
CodeSourcery, LLC