You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Capturing this note here for now; should go on the debugging page:
Note that by default GCC is built with -O2 which lead to confusion in the debugger, where e.g. attempts to singlestep through the code fail, and it simply returns from the function you were hoping to debug. But if you cd into the "build/gcc" subfirectory and build there, it gets built without optimization. So it sometimes helps to rm some .o files that you plan to step through and rerun "make" (within build/gcc) to rebuild them without optimization.
The text was updated successfully, but these errors were encountered:
Capturing this note here for now; should go on the debugging page:
Note that by default GCC is built with -O2 which lead to confusion in the debugger, where e.g. attempts to singlestep through the code fail, and it simply returns from the function you were hoping to debug. But if you cd into the "build/gcc" subfirectory and build there, it gets built without optimization. So it sometimes helps to rm some .o files that you plan to step through and rerun "make" (within build/gcc) to rebuild them without optimization.
The text was updated successfully, but these errors were encountered: