From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25472 invoked by alias); 27 Jun 2005 14:00:43 -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 25456 invoked by uid 22791); 27 Jun 2005 14:00:38 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 27 Jun 2005 14:00:38 +0000 Received: from drow by nevyn.them.org with local (Exim 4.51) id 1DmuA1-0007cW-Pz; Mon, 27 Jun 2005 10:00:29 -0400 Date: Mon, 27 Jun 2005 14:00:00 -0000 From: Daniel Jacobowitz To: Vivek Goyal Cc: Andrew Morton , Adrian Bunk , fastboot@lists.osdl.org, linux-kernel@vger.kernel.org, gdb@sources.redhat.com Subject: Re: [Fastboot] Re: [-mm patch] i386: enable REGPARM by default Message-ID: <20050627140029.GB29121@nevyn.them.org> Mail-Followup-To: Vivek Goyal , Andrew Morton , Adrian Bunk , fastboot@lists.osdl.org, linux-kernel@vger.kernel.org, gdb@sources.redhat.com References: <20050624200916.GJ6656@stusta.de> <20050624132826.4cdfb63c.akpm@osdl.org> <20050627132941.GD3764@in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050627132941.GD3764@in.ibm.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00261.txt.bz2 On Mon, Jun 27, 2005 at 06:59:41PM +0530, Vivek Goyal wrote: > On Fri, Jun 24, 2005 at 01:28:26PM -0700, Andrew Morton wrote: > > Adrian Bunk wrote: > > > > > > This patch: > > > - removes the dependency of REGPARM on EXPERIMENTAL > > > - let REGPARM default to y > > > > hm, a compromise. > > > > One other concern I have with this is that I expect -mregparm will make > > kgdb (and now crashdump) less useful. When incoming args are on the stack > > you have a good chance of being able to see what their value is by walking > > the stack slots. > > > > When the incoming args are in registers I'd expect that it would be a lot > > harder (or impossible) to work out their value. > > > > Have the kdump guys thought about (or encountered) this? GDB is more than capable of handling this - if your compiler is saving arguments to the stack and dumping out useful information for the debugger about where it put them. Recent GCC versions are generally pretty good about either saving the argument or clearly telling GDB that it was not saved. -- Daniel Jacobowitz CodeSourcery, LLC