From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1592 invoked by alias); 26 Sep 2007 07:36:06 -0000 Received: (qmail 1580 invoked by uid 22791); 26 Sep 2007 07:36:05 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Sep 2007 07:36:03 +0000 Received: by nf-out-0910.google.com with SMTP id b11so1677586nfh for ; Wed, 26 Sep 2007 00:36:01 -0700 (PDT) Received: by 10.78.130.6 with SMTP id c6mr180253hud.1190792160490; Wed, 26 Sep 2007 00:36:00 -0700 (PDT) Received: by 10.78.205.11 with HTTP; Wed, 26 Sep 2007 00:35:55 -0700 (PDT) Message-ID: Date: Wed, 26 Sep 2007 08:33:00 -0000 From: "Erik Niessen" To: gdb@sourceware.org Subject: Re: inconsistency in printing out the value of an unsigned short in gdb In-Reply-To: <20070925141947.GA6437@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070925141947.GA6437@caradoc.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00213.txt.bz2 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 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 >