Debugging a port
Eric Botcazou
ebotcazou@libertysurf.fr
Tue Dec 7 16:56:00 GMT 2004
> 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?
For the 3.x series of compilers, stopping in emit-rtl.c:make_insn_raw,
make_jump_insn_raw and make_call_insn_raw is very useful. Of course you
don't want to stop on every insn, so conditionalizing on the insn index
number (cur_insn_uid, which is actually cfun->emit->x_cur_insn_uid) might
help too.
--
Eric Botcazou
More information about the Gcc
mailing list