next

Step forward in source, over any function calls.

Syntax

next [expr]

Parameters

expr

A numeric expression.

Description

This command executes a line of source code. When the next line to be executed contains a function call, the debugger executes the function being called and stops the process at the line immediately following the function call.

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

Example

GDB Mode:

(idb) list +0,+4
151       Node* currentNode = _firstNode; 
152       while (currentNode->getNextNode()) 
153             currentNode = currentNode->getNextNode(); 
154       currentNode->setNextNode(node); 
(idb) next
152       while (currentNode->getNextNode()) 
(idb) next
153             currentNode = currentNode->getNextNode(); 
(idb) next
152       while (currentNode->getNextNode()) 
(idb) next
154       currentNode->setNextNode(node); 

IDB Mode:

(idb) list $curline:4
> 151       Node* currentNode = _firstNode; 
  152       while (currentNode->getNextNode()) 
  153             currentNode = currentNode->getNextNode(); 
  154       currentNode->setNextNode(node); 
(idb) next
stopped at [void List<Node>::append(class Node* const):152 	0x0804c579] 
152         while (currentNode->getNextNode()) 
(idb) next
stopped at [void List<Node>::append(class Node* const):153 	0x0804c592] 
153             currentNode = currentNode->getNextNode(); 
(idb) next
stopped at [void List<Node>::append(class Node* const):152 	0x0804c5aa] 
152       while (currentNode->getNextNode()) 
(idb) next
stopped at [void List<Node>::append(class Node* const):154 	0x0804c5c3] 
154       currentNode->setNextNode(node); 

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.