-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makefiles need to turn off optimizations for DEBUG=1 #4891
Comments
I guess that depends on target on compiler, at least "-O2 -g" is a valid combination of options and it has been that way "forever". You can set |
Yes, it is a valid combo but within gdb you can not inspect a lot of variables when any optimization is turned on. Every time I want to use gdb, I have to manually modify the optimization flags in Makefile.system and Makefile.power. It would be nice to not have to do this. I'll probably submit a PR later with the changes to Makefile.power |
Something like this
|
OK. Makefile.power is different from the other |
It makes it challenging to debug issues when optimizations are turned on and using gdb. All optimizations should be set to -O0 for DEBUG=1.
The text was updated successfully, but these errors were encountered: