BUG: Re: gdb semi-broken in ydl4?

Jim Bauer jfbauer at comcast.net
Tue Dec 14 21:45:56 MST 2004


On Monday 13 December 2004 16:22, Joseph E. Sacco, Ph.D. wrote:
> Albrecht,
>
> Is it really a bug, or did the optimizer eliminate "r" completely? [I am
> too lazy to dumb the assembler code :-)].
>
> I have never had much success debugging optimized code for exactly this
> reason.  The optimizer eliminates and moves things.
>
> Without "-O" gdb works as expected.

Happens all the time.  Rather anoying, but otherwise harmless.

I suspect the compiler is just using a register for 'r' and never placing it 
(or allocating space for it) on the stack so there is nothing for gdb to 
find.



More information about the yellowdog-general mailing list