Dbx 1024 User's Guide Page 26

  • Download
  • Add to my manuals
  • Print
  • Page
    / 158
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 25
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
Page view 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 157 158

Comments to this Manuals

No comments