CLion 2020.3 Help

Disassembly view

In situations when source code is unavailable, you can step into and debug the disassembled code in the dedicated view.

Open disassembly view

  • When debugging your code, use the Force Step Into the Force Step into icon Alt+Shift+F7 command instead of Step Into F7. Step Into acts like Step Over for functions with no source code.

  • Navigate to the desired frame in the Debug Tool window.

  • The disassembly view opens automatically when you launch a debug session for the attached process that does not provide debug information.

Step through in disassembly

While in disassembly view, you can investigate your code using regular stepping actions. Note that breakpoint-related actions are not supported at the moment.

Disassembly view

    Go to address

    Use the Go to field to jump to a desired code line. In this field, you can enter an address or any expression that can be evaluated into an address.

    If you need to include a register into the expression, start its name with $ (the GDB notation ).

    Refferring to a register in the Go to field of the disassembly view

      Syntax highlighting in assembly files

      Syntax highlighting is available for AT&T assembly code.

      By default, the .s and .asm files are recognized as assembly code files, but you can configure other types:

      1. Go to Settings / Preferences | Editor | File Types.

      2. Select Assembly Language in the list of recognized file types and add a new extension to the list.

      Current limitations

      The functionality of disassembly view is under development in CLion. You can vote for the desired features and share your feedback in the tickets gathered under CPP-1743: Assembly language support, for example:

      Last modified: 31 March 2021