adb(1)

adb(1)

$r

Print the general registers and the instruction addressed by the process counter. dot is

 

set to the process counter contents.

$s

Set the limit for symbol matches to address. The default is system dependent.

$v

Print all non-zero variables in the current radix.

$w

Set the page width for output to address (default 80).

$x

The default for all integers input is hexadecimal.

$z

Print a list of signals and how they are handled. See :z for information on changing sig-

 

nal handling.

The available : commands manage subprocesses, and take the form :modi®er:

:bc Set breakpoint at address. The breakpoint is executed count−1 times before causing a stop. Each time the breakpoint is encountered, the command c is executed. If this command sets dot to zero, the breakpoint causes a stop.

:cs

Continue the subprocess with signal s (see signal(5)). If address is given, the subprocess

 

continues at this address. If no signal is speci®ed, the signal that caused the subprocess

 

to stop is sent. Breakpoint skipping is the same as for :r.

:d

Delete breakpoint at address. :d* deletes all breakpoints.

:e

Set up a subprocess as in :r; no instructions are executed.

:k

Terminate the current subprocess, if any.

:r

Run obj®l as a subprocess. If address is given explicitly, the program is entered at this

 

point; otherwise the program is entered at its standard entry point. The value count

 

speci®es how many breakpoints are ignored before stopping. Arguments to the subpro-

 

cess may be supplied on the same line as the command. An argument starting with < or

 

> causes the standard input or output to be established for the command. All signals are

 

turned on when entering the subprocess.

:ss

As for c except that the subprocess is single stepped count times. If there is no current

 

subprocess, obj®l is run as a subprocess as for :r. In this case no signal can be sent; the

 

remainder of the line is treated as arguments to the subprocess.

:Ss

Same as :c except that a temporary breakpoint is set at the next instruction. Useful for

 

stepping across subroutines.

:x a [b]...

Execute subroutine a with parameters [b]...

:zd

Change signal handling for a speci®ed signal. Disposition d can be speci®ed as:

 

+s Stop process when signal is received.

 

-sDo not stop process when signal is received.

 

+r Report when signal is received.

 

-rDo not report when signal is received.

 

+d Deliver signal to the target process.

 

-dDo not deliver signal to the target process.

 

For example, 0x10:z+d enables delivering of signal number 0x10 to the target pro-

 

cess. Use $z to display existing settings.

Variables

adb provides named and numbered variables. Named variables are set initially by adb but are not used subsequently. Numbered variables are reserved for communication as follows:

0The last value printed.

1The last offset part of an instruction source.

2The previous value of variable 1.

9

The count on the last $< command.

a

HP-UX Release 11i: December 2000

− 5 −

Section 17