From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22654 invoked by alias); 21 Mar 2004 16:55:41 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22646 invoked from network); 21 Mar 2004 16:55:41 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 21 Mar 2004 16:55:41 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i2LGteWA016146; Sun, 21 Mar 2004 11:55:40 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i2LGtej30656; Sun, 21 Mar 2004 11:55:40 -0500 Received: from livre.redhat.lsd.ic.unicamp.br (vpn64-10.boston.redhat.com [172.16.66.10]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i2LGtcK0020674; Sun, 21 Mar 2004 11:55:39 -0500 Received: from livre.redhat.lsd.ic.unicamp.br (livre.redhat.lsd.ic.unicamp.br [127.0.0.1]) by livre.redhat.lsd.ic.unicamp.br (8.12.11/8.12.11) with ESMTP id i2LGtW2X024784; Sun, 21 Mar 2004 13:55:32 -0300 Received: (from aoliva@localhost) by livre.redhat.lsd.ic.unicamp.br (8.12.11/8.12.11/Submit) id i2LGtWwP024781; Sun, 21 Mar 2004 13:55:32 -0300 To: Andreas Schwab Cc: sashan , gcc@gcc.gnu.org Subject: Re: [Newb] Stepping into cc1plus from gcc References: <405BC481.3020705@ihug.co.nz> From: Alexandre Oliva Organization: Red Hat Global Engineering Services Compiler Team Date: Sun, 21 Mar 2004 18:15:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-03/txt/msg01251.txt.bz2 On Mar 20, 2004, Andreas Schwab wrote: > Alexandre Oliva writes: >> On Mar 20, 2004, sashan wrote: >> >>> I've been stepping through gcc and I've come the point, in >>> libiberty/pex-unix.c where it forks a new process called cc1plus. I'm >>> guessing this is the C++ compiler that is being called. Anyway I'd >>> like to know how to continue stepping into it. >> >> Add the attached scripts to your path and run: >> >> % debugx cc1plus g++ rest of command line > Try "gdb --args cc1plus ...". But then you have to know the command line passed to cc1plus. And what if gdb doesn't support --args, or if you want to use emacs and it doesn't support gdb --args? -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org} Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}