Query regarding expression evaluation.
Daniel Jacobowitz
drow@false.org
Thu Aug 11 19:49:00 GMT 2005
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
More information about the Gdb-patches
mailing list