!

Repeat a command in the command history.

Syntax

!!
![-]step_number
!string

Parameters

step_number

The number of steps backward or forward in the history.

When you include a minus (-), the debugger starts with the most recent command in the history and counts backwards.

When you do not include a minus, the debugger starts with the oldest command in the history and counts foward.

string

The string that begins the line in the history that you want to repeat.

Description

The exclamation point (!) repeats a command in the debugger's command history.

The debugger assembles lines in the history into a new, usable command according to the following rules.

You cannot use exclamation points in command lists built with braces ({}), although you can use them in scripts. For example, the command line {print 3; !!3} does not parse.

Examples

To repeat the seventh command used in the current debugging session, enter !7.

To repeat the third most recent command, enter !-3.

To repeat a command that started with bp, enter !bp.

To repeat the previous command, enter !!.

!!:$ designates the last parameter of the preceding command.

!fi:2 designates the second parameter of the most recent command starting with the characters fi.

See Also


Submit feedback on this help topic

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