This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]