define

Specifies a user-defined sequence of commands.

Syntax

define command-name { command1 command2 ... } 
end
  1. command-name is the name assigned to the command sequence.
  2. command is a valid debugger command.
  3. end indicates the end of the command sequence.

Usage

The define command allows you to create a user-defined command by assigning a command name to a sequence of debugger commands that you specify. You may then execute the command that you defined by entering the command name at the debugger prompt.

User commands may accept up to ten arguments separated by whitespace.

Example

(fgldb) define myinfo
> info breakpoints
> info program
> end
(fgldb)