This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]