Disassembly View and instruction level debugging

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disassembly View and instruction level debugging

6,728 Views
lpcware-support
Senior Contributor I

It is sometimes useful to be able to view the actual assembly instructions of your application when you are debugging. This can often assist in understanding the behavior you see as the application executes.

One way to do this is to change into "Instruction Stepping Mode". To do this click on the "i->" icon in the LPCXpresso Debug View.

145149_145149.pngpastedImage_0.png

This changes debug behavior such that you will now step by processor instructions, rather than source lines. It will also cause the Disassembly View to be added to your current perspective, which will display instructions around the current program counter.

If you click the "i->" icon again to return to source stepping mode, the Disassembly view will continue to be displayed.

Alternatively the menu :

Window->Show view->Other->Debug->Disassembly

will cause the Disassembly View to be displayed (without changing the current stepping mode).

Options within the Disassembly View also allow you to choose whether to display source interleaved with the disassembled code, and also if you want a linkage in the display to the active debug context.

Displaying Opcodes

LPCXpresso IDE also allows you to display the opcode for each instruction in the Disassembly view.

In LPCXpresso 7.4.0 and later...

  • Opcodes can be displayed by right-clicking in the disassembly view margin and selecting 'Show Opcodes'.

In LPCXpresso 7.3.0 and earlier...

  • Opcodes can be displayed by enabling the option provided in the menu:
    • Window->Preferences->LPCXpresso->Disassembly/Debug options


See also:

Labels (2)
Tags (2)
0 Replies