User`s guide
Creating and Removing dbx Aliases
25
If you find that you often create the same aliases in your debugging sessions,
you can include their definitions in your .dbxinit file so that they are
automatically defined for you. See “Automatically Executing Commands on
Startup” on page 10 for more information on the .dbxinit file.
Listing Aliases
You can display the definition of aliases using the alias command:
alias Lists all existing aliases.
alias name Lists the alias definition for name.
For example, to display the definitions of the predefined aliases “l” and
“bp,” enter:
(dbx) alias l
"list"
(dbx) alias bp
"stop in"
Creating Command Aliases
You can use the alias command to define new aliases:
alias name command
Defines name as an alias for command.
alias name “string”
Definesname as an alias for string. With this form of the alias
command, you can provide command arguments in the
alias definition.
alias name(arg1 [, ... argN]) “string”
Defines name as an alias for string. arg1 through argN are
arguments to the alias, appearing in the string definition.
When you use the alias, you must provide values for the
arguments, which dbx then substitutes in string.
The simplest form of an alias is to redefine a dbx command with a short alias.
Many of the predefined dbx aliases fall into this category: “a” is an alias for
theassign command, “s” is an alias for the step command. When you use one