This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix the x87 FP register printout by “info float”.
- From: Vladimir Kargov <kargov at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 19 Apr 2013 20:20:23 +0400
- Subject: Re: [PATCH] Fix the x87 FP register printout by “info float”.
- References: <CAHLdKi=qPX-x7Eb0gwqTaOsWp0gK0=3WQFLmc6_HBKGUZ7RzfQ at mail dot gmail dot com> <516FC7B3 dot 4050502 at redhat dot com> <CAHLdKinQnJHBayS1va0aqrspfcwfO4iVJwNxuaof5VsHjObtuQ at mail dot gmail dot com> <517153B4 dot 1060605 at redhat dot com>
On 19 April 2013 18:24, Pedro Alves <palves@redhat.com> wrote:
> I believe printing a negative value with an unsigned format
> specifier is actually undefined.
I've just checked C99 and yes, it appears to be undefined after all (I
actually thought that the C standard mandated a uniform representation
of negative integer numbers which it didn't!), so my patch indeed
exploited compiler and hardware dependent behaviour.
> I'm applying the patch
> I'll just point out what needed fixing, FYI.
Thanks, and thank you for the review!
--
Vladimir