User`s guide
Invoking dbx
7
dbx
Options
Table 2-1 lists options you can give to dbx. These options are described in
detail later in this chapter.
Table 2-1 dbx Command-Line Options
Option Description
–I dir Tells dbx to look in the specified directory (in addition to the
current directory and the object file’s directory) for source
files. To specify multiple directories, use a separate –I for
each. If no directory is specified when you invokedbx, it
looks for source files in the current directory and in the
object file’s directory. From dbx, changes the directories
searched for source files with the use and dir commands.
–c file Selects a command file other than .dbxinit to execute on
startingdbx. For information on .dbxinit, see “Automatically
Executing Commands on Startup.”
–e num Chooses a large size for the evaluation stack (as large as you
want). The default stack size is 20,000 bytes. num = number
of bytes. If you see the message too large to evaluate,
rerun dbx suppling a value greater than 20,000.
–k Turns on kernel debugging. When debugging a running
system, specify /dev/kmem as the core file.
–i Uses interactive mode. This option prompts for source even
when it reads from a file and treats data in a file as if it comes
from a terminal (stdin). This option does not treat “#”
characters as comments in a file.
–p pid Debugs the process specified by thepid number.
–P name Debugs the running process with the specified name (name as
described in the ps(1) reference page).
–r program [arg] Runs the named program upon entering dbx, using the
specified arguments. The .dbxinit file (if any) is read and
executedafter executing the object_file. You cannot specify a
core file with –r.