rerun (idb mode only)

Restart the program.

Syntax

rerun [ args ] [ IO_redirection ... ]  

Parameters

args

The arguments to pass to the debuggee.

Provides both the argc and argv for the created process in the same way a shell does.

IO_redirection ...

Enables you to change stdin, stdout, and stderr, which are otherwise inherited from the debugger process.

You can enter the following values:

> filename

Redirect stdout

1> filename

Redirect stdout

2> filename

Redirect stderr

>& filename

Redirect stdout and stderr

1> filename 2> filename

Redirect stdout and stderr to different files

Description

This command restarts the debuggee.

When you do not include any parameters, this command uses the arguments and the IO_redirection parameters of the most recent run command entered with arguments. If there was no previous run command, the rerun command defaults to run.

If the last modification time or size of the binary file or any of the shared objects used by the binary file has changed since you issued the last run or rerun command, the debugger automatically rereads the symbol table information. When this happens, the old breakpoint settings may no longer be valid after the debugger reads the new symbol table information.

The debugger breaks up the argument string into words, and supports several shell features, including tilde (~) and environment variable expansion, wildcard substitution, single quote ('), double quote ("), and single character quote (\).

The IO_redirection parameter enables you to change stdin, stdout, and stderr, which are otherwise inherited from the debugger process.

The various forms have the same effect as in the csh(1) shell.

Example

(idb) stop at 182
[#1: stop at "src/x_list.cxx":182] 
(idb) rerun -s > prog.output
[1] stopped at [int main(void):182 0x08051603] 
182 List<Node> nodeList; 

See Also


Submit feedback on this help topic

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