From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16464 invoked by alias); 20 Mar 2004 04:50:05 -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 16235 invoked from network); 20 Mar 2004 04:50:03 -0000 Received: from unknown (HELO disaster.jaj.com) (24.123.75.82) by sources.redhat.com with SMTP; 20 Mar 2004 04:50:03 -0000 Received: from disaster.jaj.com (localhost.localhost [127.0.0.1]) by disaster.jaj.com (8.12.10/8.12.9) with ESMTP id i2K4o2LJ014684; Fri, 19 Mar 2004 23:50:02 -0500 Received: (from phil@localhost) by disaster.jaj.com (8.12.10/8.12.9/Submit) id i2K4o1ob014683; Fri, 19 Mar 2004 23:50:01 -0500 Date: Sat, 20 Mar 2004 11:11:00 -0000 From: Phil Edwards To: sashan Cc: gcc@gcc.gnu.org Subject: Re: [Newb] Stepping into cc1plus from gcc Message-ID: <20040320045001.GA14631@disaster.jaj.com> References: <405BC481.3020705@ihug.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <405BC481.3020705@ihug.co.nz> User-Agent: Mutt/1.5.4i X-SW-Source: 2004-03/txt/msg01202.txt.bz2 On Sat, Mar 20, 2004 at 05:11:45PM +1300, 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. Yes. > Anyway I'd like > to know how to continue stepping into it. You don't. The way to actually step through the compiler is to run the driver (gcc, g++, etc) with -v on your testcase. It will print the full command line to the compiler, and the arguments passed to it. Run the debugger on /that/ executable, not the driver, and use "set args" as usual to pass the rest of the options. -- Behind everything some further thing is found, forever; thus the tree behind the bird, stone beneath soil, the sun behind Urth. Behind our efforts, let there be found our efforts. - Ascian saying, as related by Loyal to the Group of Seventeen