Sdb (available in SVR4 but not Solaris 2.0)
Dbx (Solaris 2.0 only)
These debuggers take an executable object file and its
corefile-the core image file produced when
objfile is executed.
The debuggers then provide a controlled environment
for the execution of the program.
corefile are not specified,
a.out is taken as the default object file and core
as the default core image file.
Each debugging utility is listed among the UNIX commands in Section 2 of this guide.
A - in place of
corefile will force sdb to ignore any
core image file.
Ignore symbolic data; treat addresses as file offsets.
Don't stop processes that receive signal number
See the signal system call for values of
-s may be used more than once.
Print version information (and exit if no
objfile is given).
Suppress warning messages about older files.
In the "Commands" section below, commands use
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.
Characters starting at variable's address.
64-bit double precision floating.
Disassemble machine-language instructions; print address using numbers and symbols.
Same as i, but print address using numbers only.
Pointer to procedure.
Print character(s) at address pointed to by (string pointer) variable.
Length specifiers are meaningful only with
m values of c, d, o, u, or x.
Two bytes (half word).
Four bytes (long word).
Refer to the previous specifiers when reviewing the sdb commands, which are grouped below:
|Print a stack trace.|
|Print the top line of the stack trace.|
|Print variable according to length |
|Print from a.out and procedure |
Print the address of
|Display the machine registers and the machine instructions.|
|Display the machine instructions.|
|Print name of current file.|
|Set current file to file containing procedure |
|Set current file to |
|Append directory |
|Print current line.|
|Print ten lines surrounding the current line.|
Print ten lines (starting at current); reset current line to last line.
|Search ahead for regular expression |
|Search back for regular expression |
|Set current line to |
|Go back |
|Set a breakpoint at line number |
Set breakpoint at line number
Continue after a breakpoint or, if
Same as c, but reactivate any signal that stopped program.
Continue at line number
Run the program with the specified arguments. Ignore
Rerun the program with the previously specified arguments.
Run the program with the no arguments. Ignore
This command is used when single-stepping via s, S, or m.
v turns off verbose mode; omit v to turn on verbose mode.
|Print active breakpoints.|
|[||Delete breakpoint at line number |
|Remove all breakpoints.|
|Same as i, but reactivate any signal that stopped program.|
|Kill the program you're debugging.|
|Print the previous line executed.|
|Print the address maps.|
|Same as s, but skip called functions.|
|Supply a text comment ignored by sdb.|
Display the next line or memory location, or disassemble the next instruction.
|Scroll the display ten lines.|
|Execute commands contained in |
|Print a quoted |
|Print the sdb version number.|