Breakpoint example
The following example illustrates:
-
setting a code breakpoint at the function s5readi
-
setting a data breakpoint for references to
u.u_uid
-
setting a data breakpoint for write references to lbolt
cause its value to become greater than or equal to 1000.
-
listing the breakpoints that are set
-
clearing the s5readi breakpoint
-
clearing the data reference breakpoint DR0
-
clearing the data reference breakpoint DR1
debug0:1> bp s5readi
debug0:2> bp wl &u.u_uid
debug0:3> bp wl &lbolt >= 1000
debug0:4> bl
F00620EF s5readi+3: s5readi
E00010EA u+10EA: DR0: write long u.u_uid
F0117660 lbolt: DR1: write long lbolt >= 00001000
debug0:5> bc s5readi
debug0:6> bc DR0
debug0:7> bc DR1
debug0:8> bl
No breakpoints.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003