Skip to content

Debugging and optimization #7

Description

@davidmalcolm

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions