inconsistency in printing out the value of an unsigned short in gdb

Daniel Jacobowitz drow@false.org
Tue Sep 25 15:57:00 GMT 2007


On Tue, Sep 25, 2007 at 04:10:51PM +0200, Erik Niessen wrote:
> Any ideas??

Probably inaccurate debug information from your compiler, and
different generated code.  The value has been extended for some reason
before GDB got a chance to print it.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list