01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SDB ( 1) SDB (I)<br />

finishes.<br />

linenumber g count<br />

Continue after a breakpoint with execution resumed at the<br />

given line. If count is given, it specifies the number of<br />

breakpoints to be ignored.<br />

s count<br />

S count<br />

i<br />

Single step the program through count lines. If no count is<br />

given then the program is run for one line. S is equivalent<br />

to s except it steps through procedure calls.<br />

I Single step by one machine language instruction. I steps<br />

with the signal which caused the program to stop reactivated<br />

and i ignores it.<br />

variable$m count<br />

address.m count<br />

Single step (as with s) until the specified location is modified<br />

with a new value. If count is omitted, it is effectively<br />

infinity. Variable must be accessible from the current procedure.<br />

Since this command is done by software, it can be<br />

very slow .<br />

level v<br />

Toggle verbose mode, for use when single stepping with S, s<br />

or m. If level is omitted, then just the current source file<br />

and/or subroutine name is printed when either changes. If<br />

level is 1 or greater, each C source line is printed before it is<br />

executed; if level is 2 or greater, each assembler statement is<br />

also printed. A v turns verbose mode off if it is on for any<br />

level.<br />

k Kill the program being debugged.<br />

procedure(argl,arg2, ... )<br />

procedure(argl,arg2, ... )/m<br />

Execute the named procedure with the given arguments.<br />

Arguments can be integer, character or string constants or<br />

names of variables accessible from the current procedure.<br />

The second form causes the value returned by the procedure<br />

to be printed according to format m. If no format is given,<br />

it defaults to d.<br />

linenumber b commands<br />

Set a breakpoint at the given line. If a procedure name<br />

without a line number is given (e.g. "proc:"), a breakpoint is<br />

placed at the first line in the procedure even if it was not<br />

compiled with the -g option. If no linenumber is given, a<br />

breakpoint is placed at the current line. If no commands are<br />

given then execution stops just before the breakpoint and<br />

control is returned to sdb . Otherwise the commands are<br />

executed when the breakpoint is encountered and execution<br />

continues. Multiple commands are specified by separating<br />

them with semicolons. If k is used as a command to execute<br />

at a breakpoint, control returns to sdb , instead of continuing<br />

- 6 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!