From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19923 invoked by alias); 25 Sep 2007 14:19:53 -0000 Received: (qmail 19913 invoked by uid 22791); 25 Sep 2007 14:19:53 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Sep 2007 14:19:50 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A9337982AD; Tue, 25 Sep 2007 14:19:48 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 8A143980BD; Tue, 25 Sep 2007 14:19:48 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IaBGN-0001i7-Mj; Tue, 25 Sep 2007 10:19:47 -0400 Date: Tue, 25 Sep 2007 15:57:00 -0000 From: Daniel Jacobowitz To: Erik Niessen Cc: gdb@sourceware.org Subject: Re: inconsistency in printing out the value of an unsigned short in gdb Message-ID: <20070925141947.GA6437@caradoc.them.org> Mail-Followup-To: Erik Niessen , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00203.txt.bz2 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