add-symbol-file and
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

alias

Synopsis

alias ["alias"] ["as"] [-r]

Description

Make an alias for a command or an object reference. The alias argument is the name of the new alias and the as argument the command or reference to make an alias for. For example:

alias ds disassemble-settings

will create an alias 'ds' for the command 'disassemble-settings'. So instead of writing disassemble-setting you can write 'ds' at the command line or in a Simics script.

You can also define an alias for an object reference like:

alias cpu0 system_cmp0.board1.cpu[0]

which allows you to write, for example, 'cpu0.print-processor-registers' instead of 'system_cmp0.board1.cpu[0].print-processor-registers' to print the registers for the cpu[0] processor in the component board1 in the component system_cmp0.

Use alias alias as -r if you want to replace an existing alias with a new one, or alias alias -r if you want to remove the alias.

Aliases defined by this command have higher priority then build-in aliases. This allows you to redefine the built-ins.

If no arguments are given a list of all aliases, including the built-ins, will be printed.

Aliases must only contain letters, digits and underscores. The first character is not allowed to be a digit.

Provided By

Simics Core
add-symbol-file and