NOTICE: This website will be shut down in the near future. Product content has moved to nxp.com. Forum content and FAQs have been moved to community.nxp.com. We encourage you to create a user account on nxp.com to use the new community forums and access NXP microcontroller content. We greatly appreciate your contributions and look forward to seeing you at our new web location.

 

Disassembly View and instruction level debugging

lpcxpresso-support's picture

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.

 
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:

0
Your rating: None
feedback