10

There's a number of reasons I have for wanting to view the ASM of my C program, but from what I'm discovering, it only seems possible to view the ASM of 3rd-party modules that don't have a src.

How can I view the ASM of my src?

2

1 Answer 1

13

I had the same issue, but found a solution for clion. It however requires that you have the GDB debuggger.

  1. Set a breakpoint in the function that you want to disassemble
  2. Run the debugger
  3. When the breakpoint is hit, look down on in the debugger window, on the right panel, you should see GDB. Click on it
  4. Type: disassemble
  5. The disassembly of the function should be printed out in the same panel
  6. Enjoy.
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.