This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs debugging (on alpha)
- To: law at cygnus dot com
- Subject: Re: egcs debugging (on alpha)
- From: Jason Duerstock <jason at sdi dot cluephone dot com>
- Date: Tue, 9 Feb 1999 19:07:50 -0500 (EST)
- cc: egcs-bugs at egcs dot cygnus dot com
On Tue, 9 Feb 1999, Jeffrey A Law wrote:
> Probably the next thing is to find out what the allocators *thought* they
> did :-)
>
> I would put a breakpoint in "reload", then p reg_renumber[597] at the start
> of reload. Then "finish" and print it again.
>
> The point is to find out if it had a register before or after reload.
Okay, I put in the first breakpoint
(gdb) p reg_renumber[597]
$4 = -1
(gdb) finish
[segmentation 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'
> Are you having fun yet?
Actually this is lots of fun. I feel like I'm making some real progress.
:)
Jason