nexti

Step forward in assembler instructions, over any function calls.

Syntax

nexti [expr]

Parameters

expr

A numeric expression.

Description

This command executes a machine instruction. When the instruction contains a function call, the command executes the function being called and stops the process at the instruction immediately following the call instruction.

If you specify expr, the debugger evaluates the expression as a positive integer that specifies the number of times to execute the nexti command. The expression can be any expression that is valid in the current context.

Example

At the initial pc value, 0x8048437 is a movl instruction. If you enter nexti, you wind up at 0x804843e, which is the addl after the movl.

(idb)  p $pc
$1 = (void *) 0x8048437

(idb)  disassemble 0x8048437 0x8048447
Dump of assembler code for function int main(void):
0x08048437 <main+31>:   movl     $0xa, -12(%ebp)   /* Start here */
0x0804843e <main+38>:   addl     $0x0, %esp        /* End here   */
0x08048441 <main+41>:   movlr    -12(%ebp), %eax
0x08048444 <main+44>:   movl     %eax, (%esp)
0x08048447 <main+47>:   call     foo
End of assembler dump.
(idb)  nexti
22        j = foo( j );
(idb)  p $pc
$2 = (void *) 0x804843e
(idb) 

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.