From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3812 invoked by alias); 21 Mar 2004 17:22:28 -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 3802 invoked from network); 21 Mar 2004 17:22:28 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 21 Mar 2004 17:22:28 -0000 Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id AE167339F5B; Sun, 21 Mar 2004 18:22:27 +0100 (CET) To: Alexandre Oliva Cc: sashan , gcc@gcc.gnu.org Subject: Re: [Newb] Stepping into cc1plus from gcc References: <405BC481.3020705@ihug.co.nz> From: Andreas Schwab X-Yow: .. If I had heart failure right now, I couldn't be a more fortunate man!! Date: Sun, 21 Mar 2004 19:21:00 -0000 In-Reply-To: (Alexandre Oliva's message of "21 Mar 2004 13:55:31 -0300") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-03/txt/msg01254.txt.bz2 Alexandre Oliva writes: > 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? You don't want to use such an old gdb anyway. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."