This is the mail archive of the gdb@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: inconsistency in printing out the value of an unsigned short in gdb


I ran the readelf -wi on my executable. The output file is attached.
Looking at this debug info all the 3 variables are of type short
unsigned int 2 byte size.
So it looks that the debug info generated by the compiler is correct?

Cheers,
Erik


On 9/26/07, Daniel Jacobowitz <drow@false.org> wrote:
> On Wed, Sep 26, 2007 at 09:35:55AM +0200, Erik Niessen wrote:
> > 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?
>
> Try readelf -wi.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>

Attachment: constants++.txt
Description: Text document


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