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

Erik Niessen
2007-09-26T07:36:06Z

Hi Daniel,

Thanks for your fast reply. I tried with different versions of g++
(3.4.6, 4.0, 4.0.4) they all have the same problem.
Is there a way how I can check the produced debug info for example via objdump?
So that I can convince the g++ people otherwise they will point their
finger at gdb.

Cheers,

Erik

On 9/25/07, Daniel Jacobowitz <drow@false.org> wrote:
> 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
>