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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SDB(l) SDB(l)<br />

V Print the version number.<br />

Q Print a list of procedures and files being debugged.<br />

Y Toggle debug output.<br />

Sdb may be instructed to monitor a given memory location and<br />

stop the program when the value at that location changes in a<br />

given way. For example:<br />

>if X =, or !=.<br />

off n Disables or turns off a data breakpoint without removing<br />

it from the list.<br />

on n Enables a breakpoint that was turned off.<br />

out n Removes a breakpoint from the list.<br />

Conditional breakpoints are used in a manner similar to data<br />

breakpoints, except that the user specifies a place in the program<br />

at which sdb should stop to check the data values. For example,<br />

mysub:99 b if xyz = 123<br />

The above example instructs sdb to check the value of xyz every<br />

time the program arrives at line 99 of subroutine mysub. If the<br />

condition is true, then execution stops there, as with a normal<br />

breakpoint. This type of breakpoint does not monitor the value<br />

xyz at every line of code, as the data breakpoint does.<br />

FILES<br />

a.out<br />

core<br />

SEE ALSO<br />

cc( l), sh( 1), a.out(4), core(4).<br />

- 8-<br />

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

Saved successfully!

Ooh no, something went wrong!