egcs debugging (on alpha)
Jeffrey A Law
law@hurl.cygnus.com
Tue Feb 9 19:51:00 GMT 1999
In message < Pine.LNX.4.04.9902091856170.11261-100000@sdi.aatech.com >you write:
> Okay, I put in the first breakpoint
>
> (gdb) p reg_renumber[597]
> $4 = -1
OK. It does not have a register before reload starts. Which is good 'nuff.
> (gdb) finish
> [segmentation fault]
gdb faulted? or did cc1 fault?
> > You might also want to put a conditional breakpoint in emit_reload_insns
> > Something like
> >
> > b emit_reload_insns if chain->insn->fld[0].rtint == 11940
> >
> > Would be the magic for the current sources.
> >
> > For the egcs-1.1.x releases use this instead:
> >
> > b emit_reload_insns if insn->fld[0].rtint == 11940
> >
> > When you stop do
> >
> > p debug_reload()
> > p debug_rtx(reg_equiv_mem[597])
> > p debug_rtx(reg_equiv_address[597])
>
> I tried to set the breakpoint but it kept complaining 'error in testing
> breakpoint condition: cannot access memory at address 0x9'
That's odd. Sounds like either you didn't get the condition right or a gdb
bug.
Are you trying to debug a problem in egcs-1.1.x or from a snapshot/cvs tree?
jeff
More information about the Gcc-bugs
mailing list