This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Debugging a port
- From: Russell Shaw <rjshaw at netspace dot net dot au>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 08 Dec 2004 03:01:04 +1100
- Subject: Debugging a port
Hi,
I'm trying to locate a bug in code generated by the avr port of gcc.
I've looked thru all the files in gcc-3.4.3/gcc/config/avr and
have read the gcc internals manual and a few others off the web.
Dumps at various compilation phases can be done with the -d switch,
but i was wondering if a more interactive approach could be used
with gdb. Where is a good place to put gdb breakpoints in the gcc
source? What other useful methods of debugging in gcc are there?
I want to port a dsp processor some time too, so i'm doing this
to get some practice at the same time.