When a debug build is specified the flags set are: -g -O2
An optimization level of 2 is too high for debugging. It should be 0.
As a workaround I manually edited the generated makefile to so the flags are -g -O0
Log in to post a comment.