m68k-coff + remote debugging

Nick Papadonis npapadon@yahoo.com
Wed Mar 21 15:59:00 GMT 2001


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



More information about the Gdb mailing list