User`s guide

Running Your Program
9
givenfile [file]
If you provide a filename, dbx kills the currently running
processes and loads the executable code and debugging
information found in file.
If you do not provide a filename, dbx displays the name of
the program that it is currently debugging without
changing it.
corefile [file]
If you provide a filename,dbx uses the program data stored
in the core dump file.
If you do not provide a filename, dbx displays the name of
the current core file without changing it.
Running Your Program
You can start your program under dbx using the run or rerun command.
run run-arguments
The run command starts your program and passes to it any
arguments that you provide. The run command uses your
shell (the program named in the SHELL environment
variable or /bin/sh if an environment variable does not exist)
to process a run command. The shell syntax allowed in your
shell is allowed on the run command line. All shell
processing is accepted, such as expansion and substitution
of * and ? in filenames. Redirection of the program’s
standard input and standard output, and/or standard error
is also done by the shell. In other words, the run command
does exactly what typing target run-arguments at the
shell prompt does. You can specify target either on dbx
invocation or in a prior givenfile command. dbx passes
./target as argv[0] to target when you specify it as a relative
pathname.
A run command must appear on a line by itself and cannot
be followed by another dbx command separated by a semi-
colon (;). Terminate the command line with a return (new-
line). Note that you cannot include a run command in the
command list of a when command.