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]

m68k-coff + remote debugging


Gcc: 2.95.2
Gdb: 5.0
Binutils: 2.10.1

Hi.

I just built some code for a m68k-coff/68331 target.  I used 
'm68k-coff-gcc -g -O0' to compile code.  Can I be correct in saying
-O0 disables optimization?  

When using gdb with my remote BDI, it appears some code is optimized.
Variables don't get set to the correct values and some lines are
skipped entirely.  Even though things don't look right, instuctions
appear to execute fine.  Has anyone experience a similar situation/problem?

Any insight much appreciated.  
-- 
- Nick


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