This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

Debugging when optimisation is on?


hi,

I have a program that debugs well when I try debugging with no optimisation on. However, debugging breaks as soon as I turn on the optimization option like O2 or Os. Readelf dump shows some misaligned line numbers.

What could be wrong? Isnt it a good idea to debug with optmization on?
I am using gcc 4.5.

Regards,
Brew


      


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