|Non-Confidential||PDF version||ARM 100963_0200_00_en|
|Home > Using the CADI Interface Methods from a Debugger > CADI Disassembler > Disassembly acquisition|
GetDisassembly() to get the disassembly from a CADI Disassembler.
GetDisassembly() method has these parameters:
Used by the disassembler to return the next address that can be disassembled. This gives the debugger a hint where to continue with disassembling after the last instruction of the current request.
This information is particularly useful for uncompleted calls. It gives the debugger an address from which it can resume.
desiredCountrefers to the number of requested instructions. If the mode ID is 0, the size of the instruction words can vary if the mode changes in between. It is therefore possible that the distance between the addresses (as returned by the callback) is not equally spaced.
It might be necessary to update
the last instruction is reached. If the last valid instruction within
a memory space is reached,
nextAddr must be set
to this last instruction. The last valid instruction can be determined
by testing these conditions:
nextAddris identical to the requested address.
GetDisassembly()call returns with
CADI_DISASSEMBLER_STATUS_OKand triggers only one
ReceiveDisassembly()callback no matter how many instructions are requested.