Appendix B. Predefined Aliases

Table B-1 lists all predefined dbx aliases. You can override any predefined alias by redefining it with thealias command or by removing it with the unalias command.

Table B-1. Predefined Aliases

Alias

Definition

Description

a

assign

Assigns the specified expression to the specified program variable or register.

b

stop at

Sets a breakpoint at the specified line.

bp

stop in

Sets a breakpoint in the specified procedure.

c

cont

Continues program execution after a breakpoint.

d

delete

Deletes the specified item from the status list.

dir

directory

Displays the current source directory list. If you specify one or more directories, those directories are added to the end of the source directory list.

e

file

Displays the name of the currently selected source file. If you specify a file, this command makes the specified file the currently selected source file.

f

func

Moves to the specified procedure (activation level) on the stack. If you specify no procedure or expression, dbx prints the current activation level.

g

goto

Goes to the specified source line.

h

history

Lists all the items currently in the history list.

j

status

Lists all the currently set stop,trace, and when commands.

l

list

Lists the next $listwindow lines of source code beginning at the current line.

li

$curpc/10i; \
set $curpc=$curpc+40

Lists the next 40 bytes of machine instructions (approximately 10 instructions).

n

next

Executes the specified number of lines of source code, stepping over procedures. If you do not provide an argument, dbx executes only one line.

ni

nexti

Executes the specified number of lines of machine code, stepping over procedures. If you do not provide an argument, dbx executes only one instruction.

p

print

Prints the value of the specified variable or expression.

pd

printd

Prints the value of the specified variable in decimal.

pi

playback input

Replays dbx commands saved in the specified file. If you do not specify a file, dbx uses the temporary file specified by $defaultin.

po

printo

Prints the value of the specified variable or expression in octal.

pr

printregs

Prints values contained in all registers.

px

printx

Prints the value of the specified variable or expression in hexadecimal.

q

quit

Quits dbx.

r

rerun

Runs the program again using the arguments specified for the last run command executed.

ri

record input

Records to the specified file all the input you give to dbx. If you do not specify a file, dbx creates a temporary file. The name of the file is specified by $defaultin.

ro

record output

Records all dbx output to the specified file. If no file is specified, records output to a temporary file. The name of the file is specified by $defaultout.

s

step

Executes the specified number of lines of source code, stepping into procedures. If you do not provide an argument, dbx executes only one line.

S

next

Executes the specified number of lines of source code, stepping over procedures. If you do not provide an argument, dbx executes only one line.

si

stepi

Executes the specified number of lines of machine code, stepping into procedures. If you do not provide an argument, dbx executes only one instruction.

Si

nexti

Executes the specified number of lines of machine code, stepping over procedures. If you do not provide an argument, dbx executes only one instruction.

source

playback input (pi)

Replays dbx commands saved in the specified file. If no file is specified, dbx uses the temporary file specified by $defaultin.

t

where

Does a stack trace to show the current activation levels.

u

list $curline-9:10

Lists a window of source code showing the nine lines before the current code line and the current code line. This command does not change the current code line.

w

list $curline-5:10

Lists a window of source code around the current line. This command shows the four lines before the current code line, the current code line, and five lines after the current code line. This command does not change the current code line.

W

list $curline-10:20

Lists a window of source code around the current line. This command shows the nine lines before the current code line, the current code line, and 10 lines after the current code line. This command does not change the current code line.

wi

$curpc-20/10i

Lists a window of assembly code around the program counter.