You are on page 1of 1

20.

1 The Sdb Debugger


Sdb, the symbolic debugger, is used for checking assembly programs, executable C and FORTRAN
programs, and core files resulting from aborted programs. It has the following command-line syntax:

sdb [options] [objfile [corefile [dir]]]

A - in place of corefile will force sdb to ignore any core image file.

20.1.1 Options
-e : Ignore symbolic data; treat addresses as file offsets.
-s n : Don't stop processes that receive signal number n. See the signal system call for values
of n. -s may be used more than once.
-V : Print version information (and exit if no objfile is given).
-w : Make objfile and corefile writable.
-W : Suppress warning messages about older files.

20.1.2 Command Specifiers

In the "Commands" section below, commands use the specifiers m, l, and n. m is the display format of
an address. (Addresses are specified by a variable or a line number.) l is the address length. n stands
for the line number.

20.1.2.1 Values for m


a : Characters starting at variable's address.
c : Character.
d : Decimal.
f : 32-bit floating.
g : 64-bit double precision floating.
i : Disassemble machine-language instructions; print address using numbers and symbols.
I : Same as i, but print address using numbers only.
o : Octal.
p : Pointer to procedure.
s : Print character(s) at address pointed to by (string pointer) variable.
u : Unsigned decimal.
x : Hexadecimal.

20.1.2.2 Values for l

Length specifiers are meaningful only with m values of c, d, o, u, or x.

b : One byte.
h : Two bytes (half word).
l : Four bytes (long word).

You might also like