This is the mail archive of the gcc-help@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]

Re: How can I debug gcc execution??


On Aug 21, 2000, Marcio de Oliveira Buss  <ra990898@ic.unicamp.br> wrote:

> 	I'd like to follow the execution with gdb.
> 	How can I do it??
> 	Is there any way to build the gcc with debug
>  information.

gcc is built with debugging information by default.  The trick is that
you generally want to debug `cc1', not `gcc'.  What I usually do is to
run `gcc -v -save-temps ...', then start gdb on cc1 and give it the
command line printed by `gcc -v'.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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