gdb problem
Keith Seitz
keiths@redhat.com
Wed Sep 25 08:15:00 GMT 2002
On Wed, 25 Sep 2002, Vinayak P Risbud wrote:
> 16100 <cyg_start> mov...
> 16104
> 16108
> 1610c <cyg_start+12>
> 16114 <cyg_start+20>
> 16120 <cyg_start+32>
> 16110 <cyg_start+16>
> 16118 <cyg_start+24>
> 1611c <cyg_start+20>
>
> As you can see...the addresses are not linear...
> Is it a problem ? If yes...where exactly could be the
> problem ?
Looks like you might be debugging optimized code. It shouldn't be a
problem, as long as you're aware of the consequences of debugging
optimized code (for example, registers can be reused for multiple
variables during the lifetime of a block).
If you're really concerned about it, recompile your application and
libraries without -O (or -O2, -O3, ...).
Keith
More information about the Gdb
mailing list