Machine Code Execution

All execution facilities available in the source code window are available in the machine code window as well. Two special facilities are convenient for machine-level debugging:

To execute just one machine instruction, click on the Stepi button or select Program => Step Instruction.

To continue to the next instruction in the current function, click on the Nexti button select Program => Next Instruction.. This is similar to Stepi, but any subroutine calls are executed without stopping.

Using GDB, it is often useful to do

     graph display /i $pc
     

when stepping by machine instructions. This makes DDD automatically display the next instruction to be executed, each time your program stops.

Node:Registers, Next:Customizing Machine Code, Previous:Machine Code Execution, Up:Machine-Level Debugging

results matching ""

    No results matching ""