Name
run
run [arguments
]
Run the debuggee, optionally passing it arguments as the command-line arguments. GDB also supports simple I/O redirections (<
, >
, >>
); pipes are not supported. GDB remembers the last-used arguments; thus a plain run
command restarts the program with these same arguments. (Use set args
to clear or change the argument list.)
The debuggee receives the arguments you give to the run
command, the environment as inherited by GDB and modified by set environment
, the current working directory, and the current standard input, standard output, and standard error (unless redirected).
Get GDB Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.