This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Newb] Stepping into cc1plus from gcc
- From: Phil Edwards <phil at codesourcery dot com>
- To: sashan <sashang at ihug dot co dot nz>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 19 Mar 2004 23:50:01 -0500
- Subject: Re: [Newb] Stepping into cc1plus from gcc
- References: <405BC481.3020705@ihug.co.nz>
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