run

Run the debuggee program.

Syntax

run [args] [IO_redirection]

Parameters

args

The arguments to pass to the debuggee.

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 stdin

>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 runs the debuggee, creating a process executing the loaded program. If you do not specify any arguments, the debugger uses default arguments. Default arguments are specified by the previous run command with arguments.

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 debugger sets up argc and argv based on the argument list in the same way the shell does, where argv[0] is always the image run. For example, if you enter run a b c, then argc is 4, and argv is {"debuggee", "a", "b", "c"}.

GDB Mode:

You can also specify arguments using the set args command. To view default arguments, use the show args command.

Examples

(idb) run
(idb) run -s > prog.output

See Also


Submit feedback on this help topic

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