This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How can I debug gcc execution??
- To: Marcio de Oliveira Buss <ra990898 at ic dot unicamp dot br>
- Subject: Re: How can I debug gcc execution??
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 22 Aug 2000 00:49:01 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <Pine.GSO.4.10.10008211731280.23073-100000@pinheiros.dcc.unicamp.br>
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