This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Query regarding expression evaluation.
- From: Ramana Radhakrishnan <ramana dot radhakrishnan at codito dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 10 Aug 2005 20:12:59 +0530
- Subject: Query regarding expression evaluation.
- Reply-to: ramana dot radhakrishnan at codito dot com
Hi ,
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.
Is it GDB policy to make sure that all expression evaluation is similar
to expression eval done by GCC for cases regarding implementation
dependent semantics ?
cheers
Ramana
--
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)