12
Chapter 2: Running dbx
For example:
(dbx) alias foll "print *(struct list *)$p ; \
set $p = (int)((struct list *)($p))->next"
Hint: You can also use the hed command for creating and modifying
commands. “The History Editor” on page 24 has details on this command.
Invoking a Shell
To invoke a subshell, enter sh at the dbx prompt, or enter sh and a shell
command at the dbx prompt. After invoking a subshell, typeexit or <Ctrl-
d>
to return to dbx.
The syntax for the sh command is:
sh Invoke a subshell.
sh command Execute the specified shell command. dbx interprets the rest
of the line as a command to pass to the spawned shell
process, unless you enclose the command in double-quotes
or you terminate your shell command with a semicolon (;).
For example, to spawn a subshell, enter:
(dbx) sh
%
To display the end of the file datafile, enter:
(dbx) sh tail datafile
Quitting
dbx
To end a dbx debugging session, enter the quit command at the dbx prompt:
(dbx) quit
Comments to this Manuals