Why GDB always jumps in and jumps out and seems uncontrollable when debug c++?
Joel Brobecker
brobecker@adacore.com
Fri Mar 24 02:37:00 GMT 2006
> Besides, I've set the step-mode off. And before debug, I set CFLAGS=-g
> -O2 CXXFLAGS= -g -O2 CC = gcc CPP = gcc -E CXX = g++ CPPFLAGS = -Wall
> -g -Wno-deprecated.
I think that it will be easier to debug if you remove the -O2.
What you are seeing in the jumping around is compiler optimizing
your code and doing what I think compiler experts call instruction
scheduling.
--
Joel
More information about the Gdb
mailing list