Re: [PATCH] Fix the x87 FP register printout by “info float”.

Vladimir Kargov kargov@gmail.com
Fri Apr 19 18:23:00 GMT 2013


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



More information about the Gdb-patches mailing list