From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29744 invoked by alias); 26 Jan 2003 22:37:47 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29737 invoked from network); 26 Jan 2003 22:37:47 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 26 Jan 2003 22:37:47 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18cxIK-0001re-00 for ; Sun, 26 Jan 2003 18:38:36 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18cvPo-0006GY-00 for ; Sun, 26 Jan 2003 17:38:12 -0500 Date: Sun, 26 Jan 2003 22:37:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: GDB shows fake short arguments (?????) Message-ID: <20030126223812.GA23208@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <20030126214513.GA57774@mistress.home.astercity.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030126214513.GA57774@mistress.home.astercity.net> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00425.txt.bz2 On Sun, Jan 26, 2003 at 10:45:13PM +0100, Creep wrote: > > Hello. I was debugging a program and a weird thing occured. > I'm not actually sure if this is a bug or a normal behavior :S. > I just can't quite imagine such thing could be unnoticed. > # gdb --version > GNU gdb 4.18 > > Any ideas? It's just a debug info problem with the compiler you're using; GDB stops too early in the function. If you use GCC 3.2 you'll probably get better results. If you're debugging unoptimized code and you don't want to switch compilers, GDB 5.3 contains a workaround which may help. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer