This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Newb] Stepping into cc1plus from gcc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]