advance (gdb mode only)

Run until the debuggee reaches a specific line number.

Syntax

advance linenumber

Parameters

linenumber

The line number in source code at which the debuggee should stop.

Description

This command advances the application until it reaches a specific line number in source code, or until a breakpoint, if a breakpoint comes earlier than linenumber.

This command does not skip over recursive function calls.

Example

94  int factorial (int value)
95  {
96   if (value > 1) {
97    value *= factorial (value - 1);
98   }
99   return (value);
100 }

If the current location is line 96, issuing advance 99 continues the program up to line 99.

See Also


Submit feedback on this help topic

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