This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb problem
- From: Keith Seitz <keiths at redhat dot com>
- To: Vinayak P Risbud <vinayak at multitech dot co dot in>
- Cc: Ecos-Discuss <ecos-discuss at sources dot redhat dot com>, gdb <gdb at sources dot redhat dot com>
- Date: Wed, 25 Sep 2002 08:18:04 -0700 (PDT)
- Subject: Re: gdb problem
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