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: Debugging a port


> 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


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