From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22505 invoked by alias); 17 Dec 2007 00:44:56 -0000 Received: (qmail 22494 invoked by uid 22791); 17 Dec 2007 00:44: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; Mon, 17 Dec 2007 00:44:47 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id BD1F698129; Mon, 17 Dec 2007 00:44:45 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 719339811F; Mon, 17 Dec 2007 00:44:45 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1J4468-0003k8-It; Sun, 16 Dec 2007 19:44:44 -0500 Date: Mon, 17 Dec 2007 00:47:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: [i386/stabs] Arguments of main on gcc >= 4.1 Message-ID: <20071217004444.GA14356@caradoc.them.org> Mail-Followup-To: Joel Brobecker , Pedro Alves , gdb-patches@sourceware.org References: <47503C57.6010308@portugalmail.pt> <20071203182540.GB14306@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071203182540.GB14306@adacore.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00246.txt.bz2 On Mon, Dec 03, 2007 at 10:25:40AM -0800, Joel Brobecker wrote: > > E.g.: > > int main (int argc, char **argv, char **envp); > > > > notice the 0, 4, 8: > > > > .zero 16 > > .text > > .stabs "main:F(0,1)",36,0,10,main > > .stabs "argc:p(0,1)",160,0,9,0 > > .stabs "argv:p(0,16)=*(3,54)",160,0,9,4 > > .stabs "envp:p(0,16)",160,0,9,8 > > .globl main > > .type main, @function > > Looking at your example above, what would work is if GCC was using > N_LSYM (128) symbols instead of N_PSYM symbols (160). If it did that, they wouldn't be treated as arguments any more, just as local variables. I think. -- Daniel Jacobowitz CodeSourcery