From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11061 invoked by alias); 17 Dec 2007 04:12:16 -0000 Received: (qmail 11052 invoked by uid 22791); 17 Dec 2007 04:12:15 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Dec 2007 04:12:10 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 834732A963E; Sun, 16 Dec 2007 23:12:08 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1vKFxLPRBwF5; Sun, 16 Dec 2007 23:12:08 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 03C4C2A963D; Sun, 16 Dec 2007 23:12:08 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 15EEEE7ACA; Mon, 17 Dec 2007 05:11:59 +0100 (CET) Date: Mon, 17 Dec 2007 06:42:00 -0000 From: Joel Brobecker To: Pedro Alves , gdb-patches@sourceware.org Subject: Re: [i386/stabs] Arguments of main on gcc >= 4.1 Message-ID: <20071217041159.GB9022@adacore.com> References: <47503C57.6010308@portugalmail.pt> <20071203182540.GB14306@adacore.com> <20071217004444.GA14356@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071217004444.GA14356@caradoc.them.org> User-Agent: Mutt/1.4.2.2i 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/msg00255.txt.bz2 > > 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. Duh, of course! Not sure what's best in this case - I would tend to say it's a GCC bug, but perhaps others disagree. -- Joel